Skip to content

Commit 2ac7519

Browse files
authored
chore: update to jest 24 (#53)
* chore: update to jest 24 * chore: update to danger v9 What could go wrong jumping up ~7 major versions in one commit?
1 parent 47285aa commit 2ac7519

File tree

4 files changed

+1527
-1511
lines changed

4 files changed

+1527
-1511
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ node_js:
1111
before_script:
1212
- npm prune
1313
script:
14-
- yarn add jest
1514
- yarn run test -- --coverage --outputFile test-results.json --json
1615
- yarn run lint
1716
- yarn run build
18-
- yarn run danger
17+
- npx danger ci
1918
- rm -f test-results.json
2019
after_success:
2120
- npm run semantic-release

package.json

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,29 +36,22 @@
3636
"strip-ansi": "^4.0.0"
3737
},
3838
"devDependencies": {
39-
"@types/jest": "^21.1.2",
39+
"@types/jest": "^24.0.15",
4040
"@types/node": "^8.0.37",
41-
"danger": "^2.0.0-alpha.19",
41+
"danger": "^9.0.3",
4242
"eslint": "^6.0.1",
4343
"eslint-config-macklinu": "^2.0.1",
4444
"husky": "^0.14.3",
45-
"jest": "^21.2.1",
45+
"jest": "^24.8.0",
4646
"lint-staged": "^4.2.3",
4747
"prettier": "^1.18.2",
4848
"semantic-release": "^6.3.6",
49-
"ts-jest": "^21.1.2",
49+
"ts-jest": "^24.0.2",
5050
"typescript": "^3.5.3",
5151
"validate-commit-msg": "^2.12.1"
5252
},
5353
"jest": {
54-
"testRegex": ".*\\.test\\.ts$",
55-
"transform": {
56-
".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js"
57-
},
58-
"moduleFileExtensions": [
59-
"ts",
60-
"js"
61-
]
54+
"preset": "ts-jest"
6255
},
6356
"lint-staged": {
6457
"src/**/*.ts": [

src/__tests__/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ beforeEach(() => {
2121
},
2222
},
2323
utils: {
24-
fileLinks: a => a,
24+
fileLinks: (a: any) => a,
2525
},
2626
},
2727
}

0 commit comments

Comments
 (0)