File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,13 @@ module.exports = {
14
14
] ,
15
15
moduleNameMapper : {
16
16
'@angular-skyhook/(.*)' : '<rootDir>/packages/$1' ,
17
+ // https://react-dnd.github.io/react-dnd/docs/testing
18
+ "^dnd-core$" : "dnd-core/dist/cjs" ,
19
+ "^react-dnd$" : "react-dnd/dist/cjs" ,
20
+ "^react-dnd-html5-backend$" : "react-dnd-html5-backend/dist/cjs" ,
21
+ "^react-dnd-touch-backend$" : "react-dnd-touch-backend/dist/cjs" ,
22
+ "^react-dnd-test-backend$" : "react-dnd-test-backend/dist/cjs" ,
23
+ "^react-dnd-test-utils$" : "react-dnd-test-utils/dist/cjs"
17
24
} ,
18
25
testRegex : '.*spec.ts$' ,
19
26
moduleFileExtensions : [
@@ -22,8 +29,6 @@ module.exports = {
22
29
'ts' ,
23
30
] ,
24
31
transformIgnorePatterns : [
25
- // the dnd folks started building esnext with import/export statements
26
- '/node_modules/(?!dnd-core|react-dnd-test-backend)/' ,
27
32
'/dist/' ,
28
33
] ,
29
34
modulePathIgnorePatterns : [
You can’t perform that action at this time.
0 commit comments