Skip to content

Commit bbb7982

Browse files
authored
chore(dev-deps): bump jest to v28 (#817)
* chore(package): upgrade jest to v28 * ci(jest): retry flaky e2e tests * ci(jest): remove redundant coverage reporter * ci(jest): add github-actions reporter * chore(package): upgrade jest v28.x
1 parent b2cb838 commit bbb7982

File tree

4 files changed

+657
-853
lines changed

4 files changed

+657
-853
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
run: yarn install --frozen-lockfile --ignore-scripts
6161

6262
- name: yarn test
63-
run: yarn test
63+
run: yarn test --reporters="default" --reporters="github-actions"
6464

6565
env:
6666
CI: true

jest.setup.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
jest.retryTimes(3);
2+
13
/**
24
* Uncomment the following lines for less noise in test output
35
*/

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"prettier:fix": "prettier --write \"**/*.{js,ts,md,yml,json,html}\"",
1818
"build": "tsc --build",
1919
"test": "jest",
20-
"coverage": "jest --coverage --coverageReporters=lcov",
20+
"coverage": "jest --coverage",
2121
"prepare": "husky install",
2222
"prepack": "yarn clean && yarn test && yarn build",
2323
"spellcheck": "npx --yes cspell --show-context --show-suggestions '**/*.*'"
@@ -56,7 +56,7 @@
5656
"@types/debug": "4.1.7",
5757
"@types/express": "4.17.13",
5858
"@types/is-glob": "4.0.2",
59-
"@types/jest": "27.4.1",
59+
"@types/jest": "28.1.7",
6060
"@types/micromatch": "4.0.2",
6161
"@types/node": "17.0.25",
6262
"@types/supertest": "2.0.12",
@@ -72,13 +72,13 @@
7272
"express": "4.17.3",
7373
"get-port": "5.1.1",
7474
"husky": "7.0.4",
75-
"jest": "27.5.1",
75+
"jest": "28.1.3",
7676
"lint-staged": "12.3.8",
7777
"mockttp": "2.7.0",
7878
"open": "8.4.0",
7979
"prettier": "2.6.2",
8080
"supertest": "6.2.2",
81-
"ts-jest": "27.1.4",
81+
"ts-jest": "28.0.8",
8282
"typescript": "4.6.3",
8383
"ws": "8.5.0"
8484
},

0 commit comments

Comments
 (0)