From e3271cfad488c10491d95cad27156b12686ed51e Mon Sep 17 00:00:00 2001 From: Matthias Giger Date: Sat, 17 Dec 2022 13:15:23 +0100 Subject: [PATCH] fix(test): ensure mocks are cleared between runs release-npm --- test/adaptive.test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/adaptive.test.ts b/test/adaptive.test.ts index 8c3f71a..88f4d2e 100644 --- a/test/adaptive.test.ts +++ b/test/adaptive.test.ts @@ -14,6 +14,11 @@ global.beforeEach = beforeEach // @ts-ignore global.afterEach = afterEach +// TODO should be done for spy in jest-fixture. +afterEach(() => { + vi.restoreAllMocks() +}) + environment('adaptive') test('Creates proper description XML files when adaptive icon input is supplied.', async () => {