mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
414 B
414 B
| title | outline |
|---|---|
| mockReset | Config | deep |
mockReset
- Type:
boolean - Default:
false
Should Vitest automatically call vi.resetAllMocks() before each test.
This will clear mock history and reset each implementation.
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
mockReset: true,
},
})