Skip to content

Commit

Permalink
chore: update to jest 24 (#53)
Browse files Browse the repository at this point in the history
* chore: update to jest 24

* chore: update to danger v9

What could go wrong jumping up ~7 major versions in one commit?
  • Loading branch information
macklinu authored Jul 9, 2019
1 parent 47285aa commit 2ac7519
Show file tree
Hide file tree
Showing 4 changed files with 1,527 additions and 1,511 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ node_js:
before_script:
- npm prune
script:
- yarn add jest
- yarn run test -- --coverage --outputFile test-results.json --json
- yarn run lint
- yarn run build
- yarn run danger
- npx danger ci
- rm -f test-results.json
after_success:
- npm run semantic-release
Expand Down
17 changes: 5 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,29 +36,22 @@
"strip-ansi": "^4.0.0"
},
"devDependencies": {
"@types/jest": "^21.1.2",
"@types/jest": "^24.0.15",
"@types/node": "^8.0.37",
"danger": "^2.0.0-alpha.19",
"danger": "^9.0.3",
"eslint": "^6.0.1",
"eslint-config-macklinu": "^2.0.1",
"husky": "^0.14.3",
"jest": "^21.2.1",
"jest": "^24.8.0",
"lint-staged": "^4.2.3",
"prettier": "^1.18.2",
"semantic-release": "^6.3.6",
"ts-jest": "^21.1.2",
"ts-jest": "^24.0.2",
"typescript": "^3.5.3",
"validate-commit-msg": "^2.12.1"
},
"jest": {
"testRegex": ".*\\.test\\.ts$",
"transform": {
".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"moduleFileExtensions": [
"ts",
"js"
]
"preset": "ts-jest"
},
"lint-staged": {
"src/**/*.ts": [
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ beforeEach(() => {
},
},
utils: {
fileLinks: a => a,
fileLinks: (a: any) => a,
},
},
}
Expand Down
Loading

0 comments on commit 2ac7519

Please sign in to comment.