Skip to content

Commit 1279c3f

Browse files
authored
Immer 6 final (#409)
* Update to Immer 6.0.1 * Fix AbortController test
1 parent af6a2c1 commit 1279c3f

File tree

3 files changed

+41
-16
lines changed

3 files changed

+41
-16
lines changed

package-lock.json

Lines changed: 33 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"src"
5959
],
6060
"dependencies": {
61-
"immer": "^6.0.0",
61+
"immer": "^6.0.1",
6262
"redux": "^4.0.0",
6363
"redux-thunk": "^2.3.0",
6464
"reselect": "^4.0.0"

src/createAsyncThunk.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ import {
1212
getLog
1313
} from 'console-testing-library/pure'
1414

15+
declare global {
16+
interface Window {
17+
AbortController: AbortController
18+
}
19+
}
20+
1521
describe('createAsyncThunk', () => {
1622
it('creates the action types', () => {
1723
const thunkActionCreator = createAsyncThunk('testType', async () => 42)
@@ -416,7 +422,7 @@ describe('createAsyncThunk with abortController', () => {
416422
})
417423

418424
describe('behaviour with missing AbortController', () => {
419-
let keepAbortController: typeof AbortController
425+
let keepAbortController: typeof window['AbortController']
420426
let freshlyLoadedModule: typeof import('./createAsyncThunk')
421427
let restore: () => void
422428
let nodeEnv: string

0 commit comments

Comments
 (0)