Skip to content

Commit

Permalink
ci: upgrade jest (#249)
Browse files Browse the repository at this point in the history
* ci: upgrade jest to v28

* ci: use TypeScript for jest config

* ci: upgrade jest to v29
  • Loading branch information
robin-thomas authored Oct 5, 2023
1 parent 4632439 commit 737ed7d
Show file tree
Hide file tree
Showing 3 changed files with 735 additions and 1,483 deletions.
6 changes: 5 additions & 1 deletion jest.config.js → jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
module.exports = {
import type { Config } from "jest";

const config: Config = {
collectCoverageFrom: ["<rootDir>/src/**/*.ts", "!<rootDir>/src/**/*.d.ts"],
coveragePathIgnorePatterns: ["node_modules"],
coverageReporters: ["lcov", "html"],
Expand All @@ -9,3 +11,5 @@ module.exports = {
testEnvironment: "node",
testMatch: ["**/test/**/*.test.ts"],
};

export default config;
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
"@commitlint/cli": "^16.3",
"@commitlint/config-conventional": "^16.2.4",
"@commitlint/config-lerna-scopes": "^16.2.4",
"@jest/globals": "^27.5.1",
"@jest/globals": "^29",
"@octokit/request": "^5.6.3",
"@trivago/prettier-plugin-sort-imports": "^3.4.0",
"@types/cross-spawn": "^6.0.3",
"@types/fs-extra": "^9.0.13",
"@types/got": "9.6.12",
"@types/jest": "^27.5.2",
"@types/jest": "^29",
"@types/jest-when": "^3.5.3",
"@types/node": "^17.0.21",
"@types/prompts": "2.0.14",
Expand All @@ -53,15 +53,16 @@
"eslint": "^8.50.0",
"eslint-config-prettier": "^8.10.0",
"husky": "^7.0.4",
"jest": "^27.5.1",
"jest": "^29",
"jest-when": "^3.6.0",
"lerna": "^4.0.0",
"lint-staged": "^12.5.0",
"pinst": "^3.0.0",
"prettier": "^2.8.8",
"shx": "^0.3.4",
"tempy": "1.0.1",
"ts-jest": "^27.1.5",
"ts-jest": "^29",
"ts-node": "^10.9.1",
"typescript": "~4.6.4"
},
"engines": {
Expand Down
Loading

0 comments on commit 737ed7d

Please sign in to comment.