Include target test version in sync version name
This commit is contained in:
1 parent
93f61a807a
commit
718d8b663d
4 files changed
+25
-17
No files matched your search
@@ -364,7 +364,7 @@ describe("corps sync-test", () => {
|
||||
expect(allPublishCalls.length).toBe(1);
|
||||
});
|
||||
|
||||
test("sync-test formats semantic version name [Prod v22 · #1] and rules map inspects local snapshot", async () => {
|
||||
test("sync-test formats semantic version name [Prod v22 · #1 -> Test v3] and rules map inspects local snapshot", async () => {
|
||||
setupTestEnv();
|
||||
await runCli(["corps", "bind-test", "corp-prod", "corp-test", "--confirm"]);
|
||||
|
||||
@@ -382,7 +382,7 @@ describe("corps sync-test", () => {
|
||||
|
||||
expect(syncResult.isError).toBe(false);
|
||||
const parsed = JSON.parse(syncResult.stdout);
|
||||
expect(parsed.target.publishedVersion.versionName).toBe("Sync from Acme Production [Prod v22 · #1]");
|
||||
expect(parsed.target.publishedVersion.versionName).toBe("Sync from Acme Production [Prod v22 · #1 -> Test v3]");
|
||||
expect(parsed.versionMapping.sourceProdVersionNumber).toBe(22);
|
||||
expect(parsed.ruleMapping).toHaveLength(2);
|
||||
|
||||
|
||||
Reference in new issue
Block a user