Search
boolean
false
Automatically clear mock calls, instances, contexts and results before every test.
When clearMocks enabled, rstest will call .clearAllMocks() before each test.
clearMocks
import { defineConfig } from '@rstest/core'; export default defineConfig({ clearMocks: true, });