File tree Expand file tree Collapse file tree 3 files changed +3065
-135
lines changed
Expand file tree Collapse file tree 3 files changed +3065
-135
lines changed Original file line number Diff line number Diff line change 1+ import type { Config } from "jest" ;
2+ import nextJest from "next/jest" ;
3+
4+ const createJestConfig = nextJest ( {
5+ dir : "./" ,
6+ } ) ;
7+
8+ const config : Config = {
9+ coverageProvider : "v8" ,
10+ testEnvironment : "jsdom" ,
11+ } ;
12+
13+ export default createJestConfig ( config ) ;
Original file line number Diff line number Diff line change 66 "dev" : " next dev" ,
77 "build" : " next build" ,
88 "start" : " next start" ,
9- "lint" : " next lint"
9+ "lint" : " next lint" ,
10+ "test" : " jest"
1011 },
1112 "dependencies" : {
1213 "classnames" : " ^2.5.1" ,
1617 "react-dom" : " ^18"
1718 },
1819 "devDependencies" : {
20+ "@testing-library/jest-dom" : " ^6.5.0" ,
21+ "@testing-library/react" : " ^16.0.1" ,
1922 "@types/date-fns" : " ^2.6.0" ,
2023 "@types/glob" : " ^8.1.0" ,
24+ "@types/jest" : " ^29.5.13" ,
2125 "@types/node" : " ^20" ,
2226 "@types/react" : " ^18" ,
2327 "@types/react-dom" : " ^18" ,
3034 "eslint-plugin-react-refresh" : " ^0.4.12" ,
3135 "glob" : " ^11.0.0" ,
3236 "gray-matter" : " ^4.0.3" ,
37+ "jest" : " ^29.7.0" ,
38+ "jest-environment-jsdom" : " ^29.7.0" ,
3339 "postcss" : " ^8" ,
3440 "prettier" : " ^3.3.3" ,
3541 "prettier-plugin-tailwindcss" : " ^0.6.8" ,
3642 "reading-time" : " ^1.5.0" ,
3743 "tailwindcss" : " ^3.4.1" ,
44+ "ts-node" : " ^10.9.2" ,
3845 "typescript" : " ^5"
3946 },
4047 "packageManager" :
" [email protected] "
You can’t perform that action at this time.
0 commit comments