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); });