Skip to content
Snippets Groups Projects
Commit f398611b authored by YAHYAOUI Firas's avatar YAHYAOUI Firas
Browse files

add: testing for client side with Jest

parent 9307ebf8
No related branches found
No related tags found
1 merge request!4add: testing for client side with Jest
Pipeline #19769 passed
......@@ -28,5 +28,7 @@ build-client:
test-client-job:
stage: test
image: public.ecr.aws/docker/library/node:lts
script:
- echo "testing frontend"
- npm install
- npm run test
This diff is collapsed.
......@@ -7,7 +7,8 @@
"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": {
"@tanstack/react-query": "^5.17.12",
......@@ -18,6 +19,8 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@testing-library/react": "^14.1.2",
"@types/jest": "^29.5.11",
"@types/react": "^18.2.43",
"@types/react-dom": "^18.2.17",
"@typescript-eslint/eslint-plugin": "^6.14.0",
......@@ -26,6 +29,8 @@
"eslint": "^8.55.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"typescript": "^5.2.2",
"vite": "^5.0.8"
}
......
test("demo", () => {
expect(true).toBe(true);
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment