|
5 | 5 | "main": "index.js", |
6 | 6 | "scripts": { |
7 | 7 | "coverage": "cross-env NODE_ENV=test nyc -x **/node_modules/** mocha --recursive js/**/*.jsx", |
8 | | - "test": "cross-env NODE_ENV=test jest --coverage -t /tests/mocha/*.js", |
| 8 | + "test": "cross-env NODE_ENV=test jest --coverage --collectCoverageFrom=js/**/**", |
9 | 9 | "watch": "webpack-cli --progress -d --config webpack.config.js --watch", |
10 | 10 | "dev": "webpack -d --config webpack.config.js --progress --hide-modules --host 127.0.0.1 --port 80", |
11 | 11 | "prod": "webpack -p --config webpack.config.js --progress --hide-modules --host 127.0.0.1 --port 80" |
12 | 12 | }, |
| 13 | + "jest": { |
| 14 | + "transform": { |
| 15 | + "^.+\\.(js|jsx|ts)$": "babel-jest" |
| 16 | + } |
| 17 | + }, |
13 | 18 | "author": "", |
14 | 19 | "license": "ISC", |
15 | 20 | "devDependencies": { |
16 | 21 | "@babel/cli": "^7.2.3", |
17 | 22 | "@babel/core": "^7.1.2", |
| 23 | + "@babel/plugin-proposal-class-properties": "^7.4.0", |
18 | 24 | "@babel/plugin-syntax-dynamic-import": "^7.2.0", |
19 | 25 | "@babel/preset-env": "^7.2.3", |
20 | 26 | "@babel/preset-react": "^7.0.0", |
|
41 | 47 | "babel": { |
42 | 48 | "plugins": [ |
43 | 49 | "@babel/plugin-syntax-jsx", |
44 | | - "@babel/plugin-syntax-dynamic-import" |
| 50 | + "@babel/plugin-syntax-dynamic-import", |
| 51 | + "@babel/plugin-proposal-class-properties" |
45 | 52 | ], |
46 | 53 | "presets": [ |
47 | 54 | "@babel/preset-env", |
48 | 55 | "@babel/preset-react" |
49 | | - ], |
50 | | - "env": { |
51 | | - "test": { |
52 | | - "plugins": [ |
53 | | - "istanbul" |
54 | | - ] |
55 | | - } |
56 | | - } |
| 56 | + ] |
57 | 57 | }, |
58 | 58 | "nyc": { |
59 | 59 | "exclude": "/node_modules/*", |
|
68 | 68 | "instrument": false |
69 | 69 | }, |
70 | 70 | "dependencies": { |
71 | | - "@babel/plugin-proposal-class-properties": "^7.1.0", |
72 | 71 | "@fortawesome/fontawesome-svg-core": "^1.2.14", |
73 | 72 | "@fortawesome/free-solid-svg-icons": "^5.7.1", |
74 | 73 | "@fortawesome/react-fontawesome": "^0.1.4", |
|
0 commit comments