Skip to content

Commit 3ff7810

Browse files
test: use resetModules()
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e1eb0a1 commit 3ff7810

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

__tests__/with-environment.preact.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('WithEnvironment', () => {
1111
})
1212

1313
afterEach(() => {
14-
vi.resetAllMocks()
14+
vi.resetModules()
1515
})
1616
it('should detect env as "preact"', async () => {
1717
const { WithEnvironment } = await import('../src/components/with-environment')

0 commit comments

Comments
 (0)