Skip to content

Commit

Permalink
fix(test): Fix yarn installation test
Browse files Browse the repository at this point in the history
  • Loading branch information
Morten N.O. Henriksen committed Nov 27, 2021
1 parent d10442b commit a0758a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/integration/create-react-app/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ const genFileExists = f => existsSync(join(genPath, f));

describe('create-react-app', () => {
it('check yarn installation', async () => {
// Assert that yarn is installed
const { exitCode } = await execa('yarn --version');
const { exitCode } = await execa('yarn', ['--version']);

// Assert for exit code
expect(exitCode).toBe(0);
});

Expand Down

0 comments on commit a0758a0

Please sign in to comment.