Skip to content

Commit

Permalink
fix(test): ensure mocks are cleared between runs
Browse files Browse the repository at this point in the history
release-npm
  • Loading branch information
tobua committed Dec 17, 2022
1 parent ac4d6fd commit e3271cf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/adaptive.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit e3271cf

Please sign in to comment.