Skip to content

Commit a0758a0

Browse files
author
Morten N.O. Henriksen
committed
fix(test): Fix yarn installation test
1 parent d10442b commit a0758a0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/integration/create-react-app/index.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ const genFileExists = f => existsSync(join(genPath, f));
3535

3636
describe('create-react-app', () => {
3737
it('check yarn installation', async () => {
38-
// Assert that yarn is installed
39-
const { exitCode } = await execa('yarn --version');
38+
const { exitCode } = await execa('yarn', ['--version']);
39+
40+
// Assert for exit code
4041
expect(exitCode).toBe(0);
4142
});
4243

0 commit comments

Comments
 (0)