Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
merceyz and aduh95 committed Apr 20, 2024
1 parent 45aa1b8 commit 6e62f29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/main.test.ts
Expand Up @@ -272,7 +272,7 @@ it(`shouldn't allow using regular Yarn commands on npm-configured projects`, asy

await expect(runCli(cwd, [`yarn`, `--version`])).resolves.toMatchObject({
exitCode: 1,
stderr: expect.stringContaining(`This project is configured to use npm`),
stderr: /This project is configured to use npm/,
});
});
});
Expand Down Expand Up @@ -473,7 +473,7 @@ it(`should support disabling the network accesses from the environment`, async (

await expect(runCli(cwd, [`yarn`, `--version`])).resolves.toMatchObject({
stdout: ``,
stderr: expect.stringContaining(`Network access disabled by the environment`),
stderr: /Network access disabled by the environment/,
exitCode: 1,
});
});
Expand Down

0 comments on commit 6e62f29

Please sign in to comment.