Skip to content

Commit

Permalink
feat: support for jest 28
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion committed May 3, 2022
1 parent 9d769c7 commit 77de0ed
Show file tree
Hide file tree
Showing 8 changed files with 2,421 additions and 2,486 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@types/
coverage/
dist/
node_modules/
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@types/
coverage/
dist/
node_modules/
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@types/
coverage/
dist/
node_modules/
4 changes: 2 additions & 2 deletions tsconfig.test.json → __tests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"extends": "./tsconfig.json",
"extends": "../tsconfig.json",
"compilerOptions": {
"module": "es6",
"moduleResolution": "node"
},
"include": ["src/**/*", "__tests__/**/*"]
"include": ["../src/**/*", "*.ts", "**/*"]
}
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
coveragePathIgnorePatterns: ['__tests__/__fixtures__/'],
globals: {
'ts-jest': {
tsconfig: 'tsconfig.test.json',
tsconfig: '__tests__/tsconfig.json',
},
},
preset: 'ts-jest/presets/js-with-ts',
Expand Down
4,889 changes: 2,414 additions & 2,475 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"version": "3.0.2",
"description": "Jest matcher for asserting valid HAR definitions",
"main": "dist/index.js",
"types": "@types/index.d.ts",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc",
"lint": "eslint . --ext .js,.ts",
"prebuild": "rm -rf dist/ @types/",
"prebuild": "rm -rf dist/",
"prepack": "npm run build",
"pretest": "npm run lint",
"prettier": "prettier --list-different --write \"./**/**.js\"",
Expand Down Expand Up @@ -40,14 +40,14 @@
"har-validator": "^5.1.5"
},
"peerDependencies": {
"jest": "^27.0.3"
"jest": "^28.0.3"
},
"devDependencies": {
"@readme/eslint-config": "^8.5.1",
"@types/jest": "^27.4.1",
"eslint": "^8.11.0",
"prettier": "^2.6.0",
"ts-jest": "^27.1.1",
"ts-jest": "^28.0.0",
"typescript": "^4.6.2"
},
"prettier": "@readme/eslint-config/prettier"
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"allowJs": true,
"baseUrl": "./src/",
"declaration": true,
"declarationDir": "./@types",
"esModuleInterop": true,
"lib": ["es2020"],
"outDir": "./dist",
Expand Down

0 comments on commit 77de0ed

Please sign in to comment.