Skip to content

Commit

Permalink
chore: fix init test (#3708)
Browse files Browse the repository at this point in the history
  • Loading branch information
fahslaj authored Jun 2, 2023
1 parent b0c5cd3 commit 59d7146
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions integration/__tests__/lerna-init.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ describe("lerna init", () => {
const cwd = tempy.directory();

const { stderr } = await cliRunner(cwd)("init", "--dryRun");
expect(stderr).toMatchInlineSnapshot(`
const stderrWithoutVersion = stderr.replace(/\^[\d.]+-?[\w.]+/g, "<lerna-version>");
expect(stderrWithoutVersion).toMatchInlineSnapshot(`
lerna notice cli __TEST_VERSION__
lerna info The following file system updates will be made:
CREATE lerna.json [preview]
Expand All @@ -69,7 +70,7 @@ describe("lerna init", () => {
+ ],
+ "dependencies": {},
+ "devDependencies": {
+ "lerna": "^7.0.0-alpha.0"
+ "lerna": "<lerna-version>"
+ }
+ }
+
Expand Down

0 comments on commit 59d7146

Please sign in to comment.