From 15fa1aee5bd291baf27a95ac7ea7a3a0aa8143dd Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 8 Apr 2025 17:32:23 -0700 Subject: [PATCH] fix tests --- packages/config-yaml/package-lock.json | 4 ++-- packages/config-yaml/src/__tests__/index.test.ts | 10 ++++------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/packages/config-yaml/package-lock.json b/packages/config-yaml/package-lock.json index 2a8b83224..fe99eaf1a 100644 --- a/packages/config-yaml/package-lock.json +++ b/packages/config-yaml/package-lock.json @@ -1,12 +1,12 @@ { "name": "@continuedev/config-yaml", - "version": "1.0.72", + "version": "1.0.81", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@continuedev/config-yaml", - "version": "1.0.72", + "version": "1.0.81", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.14", diff --git a/packages/config-yaml/src/__tests__/index.test.ts b/packages/config-yaml/src/__tests__/index.test.ts index 0c8f120d7..7a045cfb5 100644 --- a/packages/config-yaml/src/__tests__/index.test.ts +++ b/packages/config-yaml/src/__tests__/index.test.ts @@ -207,15 +207,15 @@ describe("E2E Scenarios", () => { injectBlocks: [ { ownerSlug: "test-org", - packageSlug: "docs", + packageSlug: "rules", versionSlug: "latest", }, ], }, ); - // The original docs array should have one item - expect(unrolledConfig.docs?.length).toBe(2); // Now 2 with the injected block + // The original rules array should have two items + expect(unrolledConfig.rules?.length).toBe(3); // Now 3 with the injected block // Check the original doc is still there expect(unrolledConfig.docs?.[0]?.startUrl).toBe( @@ -223,9 +223,7 @@ describe("E2E Scenarios", () => { ); // Check the injected doc block was added - expect(unrolledConfig.docs?.[1]?.startUrl).toBe( - "https://docs.python.org/release/3.13.1", - ); + expect(unrolledConfig.rules?.[2]).toBe("Be kind"); }); it.skip("should prioritize org over user / package secrets", () => {});