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