From a5a2e507cda8cd2933230b6c2f9088ad644708e9 Mon Sep 17 00:00:00 2001 From: Webber Date: Sun, 27 Mar 2022 01:08:28 +0100 Subject: [PATCH] fix: test aftereach --- src/model/system.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/system.test.ts b/src/model/system.test.ts index 20d3cbc2..05c2dace 100644 --- a/src/model/system.test.ts +++ b/src/model/system.test.ts @@ -11,7 +11,7 @@ const execSpy = jest.spyOn(exec, 'exec').mockImplementation(async () => 0); describe('System', () => { describe('run', () => { describe('units', () => { - afterEach(() => jest.clearAllMocks()); + beforeEach(() => jest.clearAllMocks()); it('passes the command to command line', async () => { await expect(System.run('echo test')).resolves.not.toBeNull();