Skip to content

Commit 7d241a8

Browse files
committed
Fix @typescript-eslint/no-var-requires related problems
1 parent beac13e commit 7d241a8

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
@@ -443,10 +443,10 @@ describe('createSlice', () => {
443443
})
444444

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

449-
const { createSlice } = require('../createSlice')
449+
const { createSlice } = await import('../createSlice')
450450

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

0 commit comments

Comments
 (0)