This repository was archived by the owner on May 15, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +19
-2
lines changed Expand file tree Collapse file tree 4 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -11,5 +11,9 @@ module.exports = {
11
11
] ,
12
12
collectCoverage : true ,
13
13
coveragePathIgnorePatterns : [ '/node_modules/' , '/__tests__/' ] ,
14
- testMatch : [ '**/__tests__/**/*.(spec|test).[jt]s?(x)' ]
14
+ testMatch : [ '**/__tests__/**/*.(spec|test).[jt]s?(x)' ] ,
15
+ // https://jestjs.io/docs/en/webpack.html#mocking-css-modules
16
+ moduleNameMapper : {
17
+ '\\.(scss)$' : 'identity-obj-proxy'
18
+ }
15
19
} ;
Original file line number Diff line number Diff line change 110
110
"eslint-plugin-react" : " ^7.14.2" ,
111
111
"eslint-plugin-react-hooks" : " ^1.7.0" ,
112
112
"husky" : " ^3.0.4" ,
113
+ "identity-obj-proxy" : " ^3.0.0" ,
113
114
"jest" : " ^24.9.0" ,
114
115
"lint-staged" : " ^9.2.5" ,
115
116
"prettier" : " ^1.18.2" ,
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import { render } from '@testing-library/react' ;
3
- import DatGUI from '../../dist/ index.cjs ' ;
3
+ import DatGUI from '../index' ;
4
4
5
5
test ( 'Renders without errors' , ( ) => {
6
6
render ( < DatGUI data = { { data : { } } } onUpdate = { ( ) => null } /> ) ;
Original file line number Diff line number Diff line change @@ -3390,6 +3390,11 @@ har-validator@~5.1.0:
3390
3390
ajv "^6.5.5"
3391
3391
har-schema "^2.0.0"
3392
3392
3393
+ harmony-reflect@^1.4.6 :
3394
+ version "1.6.1"
3395
+ resolved "https://registry.yarnpkg.com/harmony-reflect/-/harmony-reflect-1.6.1.tgz#c108d4f2bb451efef7a37861fdbdae72c9bdefa9"
3396
+ integrity sha512-WJTeyp0JzGtHcuMsi7rw2VwtkvLa+JyfEKJCFyfcS0+CDkjQ5lHPu7zEhFZP+PDSRrEgXa5Ah0l1MbgbE41XjA==
3397
+
3393
3398
has-ansi@^2.0.0 :
3394
3399
version "2.0.0"
3395
3400
resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91"
3542
3547
resolved "https://registry.yarnpkg.com/icss-replace-symbols/-/icss-replace-symbols-1.1.0.tgz#06ea6f83679a7749e386cfe1fe812ae5db223ded"
3543
3548
integrity sha1-Bupvg2ead0njhs/h/oEq5dsiPe0=
3544
3549
3550
+ identity-obj-proxy@^3.0.0 :
3551
+ version "3.0.0"
3552
+ resolved "https://registry.yarnpkg.com/identity-obj-proxy/-/identity-obj-proxy-3.0.0.tgz#94d2bda96084453ef36fbc5aaec37e0f79f1fc14"
3553
+ integrity sha1-lNK9qWCERT7zb7xarsN+D3nx/BQ=
3554
+ dependencies :
3555
+ harmony-reflect "^1.4.6"
3556
+
3545
3557
ignore-walk@^3.0.1 :
3546
3558
version "3.0.1"
3547
3559
resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.1.tgz#a83e62e7d272ac0e3b551aaa82831a19b69f82f8"
You can’t perform that action at this time.
0 commit comments