Skip to content

Commit 33759f9

Browse files
committed
test: update config version expectations from 2.0.0 to 3.0.0
1 parent 0d7ebb7 commit 33759f9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

packages/core-node/src/config.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ describe("setupConfigFile & Backup Creation", () => {
6464
// 3. Retrieve config (this triggers the migration process and onStep callback)
6565
const migratedConfig = await configInstance.getConfig();
6666

67-
// 4. Assert the main config is updated on disk to version 2.0.0
68-
expect(migratedConfig.version).toBe("2.0.0");
67+
// 4. Assert the main config is updated on disk to version 3.0.0
68+
expect(migratedConfig.version).toBe("3.0.0");
6969

7070
const updatedContent = JSON.parse(await fs.readFile(projectsFilePath, "utf8"));
71-
expect(updatedContent.version).toBe("2.0.0");
71+
expect(updatedContent.version).toBe("3.0.0");
7272

7373
// 5. Assert that the intermediate backup file was created on disk
7474
const backupFilePath = path.join(configDir, "projects.v2.0.0.json");
@@ -92,7 +92,7 @@ describe("setupConfigFile & Backup Creation", () => {
9292
// Should create file with default value
9393
expect(existsSync(projectsFilePath)).toBe(true);
9494
const content = JSON.parse(await fs.readFile(projectsFilePath, "utf8"));
95-
expect(content.version).toBe("2.0.0");
95+
expect(content.version).toBe("3.0.0");
9696
expect(content.projects).toHaveLength(1);
9797
expect(content.pipelines).toEqual([]);
9898
});
@@ -107,7 +107,7 @@ describe("setupConfigFile & Backup Creation", () => {
107107
const configInstance = await setupConfigFile<FileRepo>("projects", { context });
108108
const config = await configInstance.getConfig();
109109

110-
expect(config.version).toBe("2.0.0");
110+
expect(config.version).toBe("3.0.0");
111111
expect(config.projects).toHaveLength(1);
112112
expect(config.pipelines).toEqual([]);
113113

0 commit comments

Comments
 (0)