From a0758a0c491b49c421dcfb0b624a409698db9052 Mon Sep 17 00:00:00 2001 From: "Morten N.O. Henriksen" Date: Sat, 27 Nov 2021 17:46:18 +0100 Subject: [PATCH] fix(test): Fix yarn installation test --- test/integration/create-react-app/index.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/integration/create-react-app/index.test.js b/test/integration/create-react-app/index.test.js index 5cc952e64dd..f1f5e910e45 100644 --- a/test/integration/create-react-app/index.test.js +++ b/test/integration/create-react-app/index.test.js @@ -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); });