Skip to content

Commit d9d6b89

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

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
@@ -497,10 +497,10 @@ describe('createSlice', () => {
497497
})
498498

499499
// TODO Determine final production behavior here
500-
it.todo('Crashes in production', () => {
500+
it.todo('Crashes in production', async () => {
501501
vi.stubEnv('NODE_ENV', 'production')
502502

503-
const { createSlice } = require('../createSlice')
503+
const { createSlice } = await import('../createSlice')
504504

505505
const dummySlice = (createSlice as CreateSlice)({
506506
name: 'dummy',

0 commit comments

Comments
 (0)