Skip to content

Commit

Permalink
Feat: Add vitest for frontend testing
Browse files Browse the repository at this point in the history
  • Loading branch information
SverreNystad committed Jan 3, 2024
1 parent 185b3ae commit 77913f5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"vitest": "^1.1.1"
},
"devDependencies": {
"@types/react": "^18.2.43",
Expand Down
9 changes: 9 additions & 0 deletions frontend/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig, mergeConfig } from "vitest/config";
import viteConfig from "./vite.config.ts";

export default mergeConfig(
viteConfig,
defineConfig({
test: {},
})
);

0 comments on commit 77913f5

Please sign in to comment.