Skip to content

Commit

Permalink
jest sets up
Browse files Browse the repository at this point in the history
  • Loading branch information
hamid-Ft committed Nov 25, 2023
1 parent ff231a6 commit 4c54e60
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 9 deletions.
77 changes: 70 additions & 7 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"dev": "vite",
"build": "tsc && vite build",
"test": "jest --detectOpenHandles",
"test:watch": "jest --watch",
"lint": "eslint . --ext ts,tsx --quiet --fix --report-unused-disable-directives --max-warnings 0",
"format": "prettier --write 'src/**/*.{js,ts,jsx,tsx,json,css}'",
"preview": "vite preview",
Expand Down Expand Up @@ -41,7 +42,7 @@
"devDependencies": {
"@testing-library/jest-dom": "^6.1.4",
"@testing-library/react": "^14.1.0",
"@types/jest": "^29.5.8",
"@types/jest": "^29.5.10",
"@types/react": "^18.2.34",
"@types/react-dom": "^18.2.14",
"@typescript-eslint/eslint-plugin": "^6.12.0",
Expand All @@ -64,6 +65,7 @@
"postcss": "^8.4.31",
"prettier": "^3.1.0",
"prettier-eslint": "^16.1.2",
"react-test-renderer": "^18.2.0",
"tailwindcss": "^3.3.5",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1"
Expand Down
7 changes: 6 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,10 @@
},
"include": ["src", "**/*.ts", "**/*.tsx", "**/*.js"],
"exclude": ["node_modules"],
"references": [{ "path": "./tsconfig.node.json" }]
"references": [{ "path": "./tsconfig.node.json" }],
"globals": {
"ts-jest": {
"tsconfig": "./tsconfig.json"
}
}
}

0 comments on commit 4c54e60

Please sign in to comment.