Skip to content

Commit d102b92

Browse files
committed
Fix test
1 parent ccee26b commit d102b92

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/react/src/stores/__tests__/theme-store.browser.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ afterAll(() => {
2323
})
2424

2525
describe.each([
26-
[false, 'browser'],
2726
[false, 'server'],
27+
[true, 'browser'],
2828
])('themeStore %s', (_isBrowser, _title) => {
2929
const originalWindow = globalThis.window
3030
beforeEach(() => {
@@ -162,6 +162,8 @@ describe.each([
162162
})
163163
} else {
164164
it('should return themeStore object for server', async () => {
165+
const { createThemeStore } = await import('../theme-store')
166+
require.cache[require.resolve('../theme-store')] = undefined
165167
const themeStore = createThemeStore()
166168

167169
// Test SSR store behavior

0 commit comments

Comments
 (0)