Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ jobs:
working-directory: ./frontend
run: bun run build

- name: Run tests
working-directory: ./frontend
run: bun run test

- name: Check TypeScript
working-directory: ./frontend
run: bun run tsc --noEmit
Expand Down
24 changes: 19 additions & 5 deletions frontend/bun.lock

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

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@types/react-dom": "^18.2.17",
"@vitejs/plugin-react": "^4.7.0",
"autoprefixer": "^10.4.16",
"jsdom": "^28.1.0",
"happy-dom": "^20.7.0",
Comment thread
DevanshuNEU marked this conversation as resolved.
"postcss": "^8.4.32",
"tailwindcss": "^3.4.0",
"typescript": "^5.9.3",
Expand Down
6 changes: 5 additions & 1 deletion frontend/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ import path from 'path'

export default defineConfig({
plugins: [react()],
// force non-production mode so React exposes act() and test utilities
define: {
'process.env.NODE_ENV': '"test"',
},
test: {
globals: true,
environment: 'jsdom',
environment: 'happy-dom',
setupFiles: ['./src/test/setup.ts'],
include: ['src/**/*.{test,spec}.{ts,tsx}'],
css: false,
Expand Down