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 Mar 15, 2024
1 parent 8f7203f commit 0a0359e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/main.test.ts
Expand Up @@ -271,7 +271,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 @@ -419,7 +419,7 @@ it(`should refuse to run a different package manager within a configured project

await expect(runCli(cwd, [`pnpm`, `--version`])).resolves.toMatchObject({
stdout: ``,
stderr: expect.stringContaining(`This project is configured to use yarn`),
stderr: /This project is configured to use yarn/,
exitCode: 1,
});

Expand Down Expand Up @@ -470,7 +470,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 0a0359e

Please sign in to comment.