Skip to content

Commit bdcebe4

Browse files
committed
Fix @typescript-eslint/no-var-requires related problems
1 parent e03b433 commit bdcebe4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/toolkit/src/tests/createSlice.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,10 +444,10 @@ describe('createSlice', () => {
444444
})
445445

446446
// TODO Determine final production behavior here
447-
it.todo('Crashes in production', () => {
447+
it.todo('Crashes in production', async () => {
448448
vi.stubEnv('NODE_ENV', 'production')
449449

450-
const { createSlice } = require('../createSlice')
450+
const { createSlice } = await import('../createSlice')
451451

452452
const dummySlice = (createSlice as CreateSlice)({
453453
name: 'dummy',

0 commit comments

Comments
 (0)