feat(tests): add basic arithmetic functions and corresponding tests

- Implemented `add` and `subtract` functions in multiple packages (web, ui, utils).
- Created unit tests for these functions using Vitest in respective test files.
- Updated turbo.json to include a new test pipeline for coverage and watch mode.
This commit is contained in:
Firman Ramdhani
2026-01-14 18:35:20 +07:00
parent a994be1cd2
commit 914c267e66
18 changed files with 862 additions and 21 deletions
+5 -2
View File
@@ -7,7 +7,9 @@
"dev": "vite --clearScreen false",
"build": "tsc && vite build",
"preview": "vite preview",
"lint": "eslint \"src/**/*.ts\""
"lint": "eslint \"src/**/*.ts\"",
"test": "vitest run",
"test:watch": "vitest --watch"
},
"dependencies": {
"@repo/ui": "workspace:*",
@@ -26,6 +28,7 @@
"@vitejs/plugin-react": "^5.1.2",
"eslint": "^8.57.1",
"typescript": "5.5.4",
"vite": "^5.1.4"
"vite": "^5.1.4",
"vitest": "^4.0.17"
}
}