Skip to content

Commit

Permalink
setting up jest for code coverage checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Cassidy-Boilley committed May 28, 2024
1 parent 6718114 commit c29373a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"*.css",
"*.md",
"Dockerfile",
"compose.yaml"
"compose.yaml",
"*.ts"
// Add other file types you want to ignore
],
"plugins": ["@next/eslint-plugin-next"],
Expand Down
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"ts-node": "^10.9.2"
},
"devDependencies": {
"@jest/globals": "^29.7.0",
"@playwright/test": "^1.44.1",
"@types/jest": "^29.5.12",
"@types/node": "^20.12.12",
Expand Down
22 changes: 19 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,27 @@
"esModuleInterop": true,
"resolveJsonModule": true,
"forceConsistentCasingInFileNames": true,
"types": ["@types/jest", "jest-playwright/preset", "expect-playwright"]
"types": [
"@types/jest",
"jest-playwright/preset",
"expect-playwright",
"@types/node"
],
"skipLibCheck": true,
"incremental": true,
"moduleResolution": "node",
"isolatedModules": true,
"jsx": "preserve",
"plugins": [
{
"name": "next"
}
]
},
"include": ["src"],
"include": ["src", ".next/types/**/*.ts"],
"files": [
"node_modules/jest-playwright/types/global.d.ts",
"node_modules/expect-playwright/global.d.ts"
]
],
"exclude": ["node_modules"]
}

0 comments on commit c29373a

Please sign in to comment.