Skip to content

Commit

Permalink
Update jest deps; Also add --harmomy flag for json-parse-with-source …
Browse files Browse the repository at this point in the history
…to node jest
  • Loading branch information
Rendez committed Feb 21, 2024
1 parent d22bd94 commit 868af22
Show file tree
Hide file tree
Showing 4 changed files with 673 additions and 584 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ jobs:

- name: Run checks
run: |
pnpm test
pnpm lint
pnpm tsc:check
pnpm test
15 changes: 7 additions & 8 deletions jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
"moduleNameMapper": {
"^(\\.{1,2}/.*)\\.js$": "$1"
},
"transformIgnorePatterns": ["<rootDir>/node_modules/.pnpm/(?!(json-with-bigint)@)"],
"transform": {
"\\.[jt]sx?$": "ts-jest"
},
"globals": {
"ts-jest": {
"tsconfig": {
"sourceMap": true
"\\.[jt]sx?$": [
"ts-jest",
{
"tsconfig": {
"sourceMap": true
}
}
}
]
}
}
21 changes: 12 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,21 +76,21 @@
"devDependencies": {
"@changesets/changelog-github": "0.4.8",
"@changesets/cli": "2.26.1",
"@types/jest": "^28.0.0",
"@types/jest": "^29.5.12",
"@typescript-eslint/eslint-plugin": "^4.30.0",
"@typescript-eslint/parser": "^4.31.0",
"codecov": "^3.8.2",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^28.0.0",
"jest-environment-jsdom": "^28.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"msw": "^0.49.3",
"prettier": "^2.4.0",
"rimraf": "^3.0.0",
"ts-jest": "^28.0.0",
"ts-node": "^10.0.0",
"typescript": "~4.7.0",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"typescript": ">=4.7",
"whatwg-fetch": "^3.6.2"
},
"prettier": {
Expand All @@ -112,11 +112,14 @@
"build": "pnpm clean && tsc -p tsconfig.json && tsc -p tsconfig.es6.json && tsc -p tsconfig.cjs.json && node post-build.js",
"lint": "eslint .",
"prepare": "pnpm build",
"test": "pnpm build && jest",
"test:coverage": "pnpm build && jest --no-cache --coverage && codecov",
"test:coverage:local": "pnpm build && jest --no-cache --collectCoverage",
"test": "$npm_package_config_jest_cli",
"test:coverage": "pnpm build && $npm_package_config_jest_cli --no-cache --coverage && codecov",
"test:coverage:local": "pnpm build && $npm_package_config_jest_cli --no-cache --collectCoverage",
"tsc:check": "tsc --noEmit",
"ci:version": "pnpm changeset version && pnpm install --no-frozen-lockfile && git add .",
"ci:release": "pnpm changeset publish"
},
"config": {
"jest_cli": "node --harmony-json-parse-with-source node_modules/jest/bin/jest.js"
}
}
Loading

0 comments on commit 868af22

Please sign in to comment.