Fixed test

Signed-off-by: Andre Wanlin <awanlin@spotify.com>
This commit is contained in:
Andre Wanlin
2024-09-10 20:29:30 -05:00
parent 26027388df
commit 9b72729629
+1 -6
View File
@@ -209,12 +209,7 @@ describe('tasks', () => {
await expect(buildAppTask(appDir)).resolves.not.toThrow();
expect(mockChdir).toHaveBeenCalledTimes(1);
expect(mockChdir).toHaveBeenNthCalledWith(1, appDir);
expect(mockExec).toHaveBeenCalledTimes(3);
expect(mockExec).toHaveBeenNthCalledWith(
1,
'yarn --version',
expect.any(Function),
);
expect(mockExec).toHaveBeenCalledTimes(2);
expect(mockExec).toHaveBeenNthCalledWith(
2,
'yarn install',