Skip to content

Commit 4ebb8ed

Browse files
committed
chore(test): Update jest
1 parent 6fd4002 commit 4ebb8ed

File tree

3 files changed

+841
-581
lines changed

3 files changed

+841
-581
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ before_script:
88
- 'if [[ -n "$TRAVIS_TAG" ]] && [[ "$TRAVIS_JOB_NUMBER" == *.1 ]]; then yarn run create-github-release || true; fi'
99
script:
1010
- yarn lint
11-
- yarn test
11+
- yarn test -- --ci

package.json

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -30,26 +30,17 @@
3030
"bugs": {
3131
"url": "https://github.com/reactjs/react-tabs/issues"
3232
},
33-
"files": [
34-
"dist",
35-
"lib",
36-
"style"
37-
],
33+
"files": ["dist", "lib", "style"],
3834
"homepage": "https://github.com/reactjs/react-tabs",
39-
"keywords": [
40-
"react",
41-
"tabs",
42-
"a11y",
43-
"react-component"
44-
],
35+
"keywords": ["react", "tabs", "a11y", "react-component"],
4536
"peerDependencies": {
4637
"react": "^0.14.9 || ^15.3.0"
4738
},
4839
"devDependencies": {
4940
"babel-cli": "^6.9.0",
5041
"babel-core": "^6.9.1",
51-
"babel-eslint": "^7.0.0",
52-
"babel-jest": "^20.0.0",
42+
"babel-eslint": "^8.0.1",
43+
"babel-jest": "^21.2.0",
5344
"babel-loader": "^7.0.0",
5445
"babel-plugin-transform-class-properties": "^6.11.5",
5546
"babel-plugin-transform-object-rest-spread": "^6.8.0",
@@ -68,7 +59,7 @@
6859
"eslint-plugin-react": "^7.0.1",
6960
"hoist-non-react-statics": "^2.3.1",
7061
"husky": "^0.14.3",
71-
"jest-cli": "^20.0.0",
62+
"jest": "^21.2.1",
7263
"lint-staged": "^4.0.4",
7364
"npm-run-all": "^4.1.1",
7465
"prettier": "^1.2.2",
@@ -89,15 +80,10 @@
8980
"prop-types": "^15.5.0"
9081
},
9182
"jest": {
92-
"roots": [
93-
"src"
94-
],
83+
"roots": ["src"],
9584
"testRegex": "/__tests__/.+-test\\.js$"
9685
},
9786
"lint-staged": {
98-
"src/**/*.js": [
99-
"eslint --fix",
100-
"git add"
101-
]
87+
"src/**/*.js": ["eslint --fix", "git add"]
10288
}
10389
}

0 commit comments

Comments
 (0)