We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccee26b commit d102b92Copy full SHA for d102b92
1 file changed
packages/react/src/stores/__tests__/theme-store.browser.test.ts
@@ -23,8 +23,8 @@ afterAll(() => {
23
})
24
25
describe.each([
26
- [false, 'browser'],
27
[false, 'server'],
+ [true, 'browser'],
28
])('themeStore %s', (_isBrowser, _title) => {
29
const originalWindow = globalThis.window
30
beforeEach(() => {
@@ -162,6 +162,8 @@ describe.each([
162
163
} else {
164
it('should return themeStore object for server', async () => {
165
+ const { createThemeStore } = await import('../theme-store')
166
+ require.cache[require.resolve('../theme-store')] = undefined
167
const themeStore = createThemeStore()
168
169
// Test SSR store behavior
0 commit comments