This documentation is for the old Kea 0.28. To see the latest docs, click here!

resetKeaCache

Clear the cache for reducer paths, created actions and running sagas. Useful in tests.

Usage

// logic.test.js
import { resetKeaCache } from 'kea'

beforeEach(() => {
  resetKeaCache()
})

test('starts from a clear state', () => {
  // ...
})