File tree 4 files changed +5
-14
lines changed
4 files changed +5
-14
lines changed Original file line number Diff line number Diff line change 8
8
],
9
9
"env": {
10
10
"browser": true,
11
- "mocha ": true,
11
+ "jest ": true,
12
12
"node": true
13
13
},
14
14
"rules": {
Original file line number Diff line number Diff line change 9
9
"build:umd" : " rimraf ./umd && webpack --progress --config webpack.config.umd.js" ,
10
10
"build:umd:min" : " webpack --env.minimize --progress --config webpack.config.umd.js" ,
11
11
"lint" : " eslint --max-warnings=0 src test examples/src" ,
12
- "test" :
13
- " npm run lint && NODE_ENV=test mocha --compilers js:babel-core/register --recursive" ,
14
- "test:watch" :
15
- " NODE_ENV=test mocha --compilers js:babel-core/register --recursive --watch" ,
16
- "test:cov" :
17
- " babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha -- --recursive" ,
12
+ "test" : " jest" ,
18
13
"prepare" : " npm run build" ,
19
- "prepublishOnly" : " npm run test && npm run clean && npm run build && npm run build:umd && npm run build:umd:min" ,
14
+ "prepublishOnly" :
15
+ " npm run lint && npm run test && npm run clean && npm run build && npm run build:umd && npm run build:umd:min" ,
20
16
"start" : " cd examples && npm start" ,
21
17
"precommit" : " lint-staged"
22
18
},
64
60
"eslint-plugin-promise" : " ^3.6.0" ,
65
61
"eslint-plugin-react" : " 7.4.0" ,
66
62
"eslint-plugin-standard" : " ^3.0.1" ,
67
- "expect" : " ^21.2.1" ,
68
63
"husky" : " ^0.14.3" ,
69
- "isparta " : " ^4.0 .0" ,
64
+ "jest " : " ^23.6 .0" ,
70
65
"lint-staged" : " ^4.3.0" ,
71
- "mocha" : " ^4.0.1" ,
72
66
"prettier" : " ^1.7.4" ,
73
67
"react" : " ^16.0.0" ,
74
68
"react-dom" : " ^16.0.0" ,
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
- import expect from 'expect' ;
3
2
import { createRenderer } from 'react-test-renderer/shallow' ;
4
3
5
4
import JSONTree from '../src/index' ;
Original file line number Diff line number Diff line change 1
- import expect from 'expect' ;
2
-
3
1
import objType from '../src/objType' ;
4
2
5
3
describe ( 'objType' , ( ) => {
You can’t perform that action at this time.
0 commit comments