We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0aa1bf4 commit a55957eCopy full SHA for a55957e
1 file changed
cli/tests/unit/cli/router.test.mjs
@@ -55,7 +55,9 @@ describe("CLI routing", () => {
55
it("shows version with --version", async () => {
56
const { code, stdout } = await run(["--version"]);
57
assert.equal(code, 0);
58
- assert.match(stdout.trim(), /^\d+\.\d+\.\d+$/);
+ // Allow prerelease suffixes: publish-next.yml bumps to e.g. 1.5.1-next.<ts>.g<sha>
59
+ // before `npm publish`, whose prepublishOnly hook re-runs this test
60
+ assert.match(stdout.trim(), /^\d+\.\d+\.\d+(-[0-9A-Za-z.-]+)?$/);
61
});
62
63
0 commit comments