Skip to content
This repository was archived by the owner on Jan 16, 2019. It is now read-only.

Commit ee07a4c

Browse files
committed
Upgrade Babel and Jest
1 parent 500a505 commit ee07a4c

File tree

4 files changed

+389
-399
lines changed

4 files changed

+389
-399
lines changed

.jestconfig

Lines changed: 0 additions & 17 deletions
This file was deleted.

jest.config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module.exports = {
2+
coverageDirectory: "coverage",
3+
moduleDirectories: ["node_modules"],
4+
moduleNameMapper: {
5+
"^.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|bmp|ico|yml)$": "<rootDir>/__mocks__/fileMock.js",
6+
"^.+\\.(css|scss)$": "<rootDir>/__mocks__/styleMock.js",
7+
},
8+
modulePaths: [
9+
"src",
10+
"src/js",
11+
"src/img",
12+
"src/styles",
13+
],
14+
collectCoverageFrom: [
15+
"src/js/**/*.{js,jsx}",
16+
],
17+
}

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
"build": "cross-env NODE_ENV=production webpack --config=webpack/webpack.config.prod.js",
99
"build:dll": "cross-env NODE_ENV=development webpack --config=webpack/webpack.config.dll.js",
1010
"postinstall": "yarn run build:dll && flow-scripts stub",
11-
"test": "jest --config .jestconfig --coverage",
11+
"test": "jest --coverage",
1212
"test:watch": "jest --config .jestconfig --watch"
1313
},
1414
"author": "Tay Yang Shun",
1515
"license": "MIT",
1616
"devDependencies": {
1717
"autoprefixer": "^7.1.2",
18-
"babel-core": "^6.24.1",
18+
"babel-core": "^6.25.0",
1919
"babel-eslint": "^7.2.3",
20-
"babel-loader": "^6.2.4",
20+
"babel-loader": "^7.1.1",
2121
"babel-plugin-syntax-object-rest-spread": "^6.13.0",
2222
"babel-plugin-transform-es2015-destructuring": "^6.23.0",
2323
"babel-plugin-transform-object-rest-spread": "^6.23.0",
@@ -44,7 +44,7 @@
4444
"flow-scripts": "^0.3.0",
4545
"flow-status-webpack-plugin": "^0.1.7",
4646
"html-webpack-plugin": "^2.29.0",
47-
"jest": "^19.0.1",
47+
"jest": "^20.0.4",
4848
"node-sass": "^4.5.3",
4949
"postcss-loader": "^2.0.6",
5050
"react-addons-test-utils": "^15.6.0",

0 commit comments

Comments
 (0)