Skip to content

Commit

Permalink
Merge pull request #15 from chingu-voyages/TEAM33-40_JEST_testing_set…
Browse files Browse the repository at this point in the history
…_up_for_frontend

Setup TSJest, tested with mock tests, with positive results. Deleted …
  • Loading branch information
ValeSer committed Oct 12, 2023
2 parents a145574 + 0450e2e commit 0497254
Show file tree
Hide file tree
Showing 553 changed files with 145,651 additions and 6 deletions.
5 changes: 5 additions & 0 deletions frontend/jest.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
};
81 changes: 80 additions & 1 deletion frontend/package-lock.json

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

7 changes: 5 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"preview": "vite preview",
"test": "jest"
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/jest": "^29.5.5",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^6.0.0",
Expand All @@ -24,7 +26,8 @@
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.3",
"jest": "^29.7.0",
"typescript": "^5.0.2",
"ts-jest": "^29.1.1",
"typescript": "^5.2.2",
"vite": "^4.4.5"
}
}
Loading

0 comments on commit 0497254

Please sign in to comment.