Skip to content

Commit 56ad8cb

Browse files
authored
Move UI reducer tests to Jest (#2070)
* Add jest-immutable-matchers * Move UI reducer tests to Jest
1 parent d2ad0ca commit 56ad8cb

File tree

5 files changed

+436
-560
lines changed

5 files changed

+436
-560
lines changed

jest-setup.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// eslint-disable-next-line import/no-namespace
2+
import * as immutableMatchers from 'jest-immutable-matchers';
3+
4+
jest.addMatchers(immutableMatchers);
5+
16
function createRange() {
27
// createRange is always called with a Document context
38
/* eslint-disable no-invalid-this, consistent-this */

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@
357357
"is-docker": "2.0.0",
358358
"jest": "24.9.0",
359359
"jest-extended": "0.11.2",
360+
"jest-immutable-matchers": "2.0.1",
360361
"jscodeshift": "0.7.0",
361362
"json-loader": "0.5.7",
362363
"karma": "4.4.1",

0 commit comments

Comments
 (0)