tpmjs/packages/ui/vitest.config.ts
Ajax Davis 4f81564c49 fix: add testing-library/jest-dom matchers for UI tests
- Add @testing-library/jest-dom as dev dependency
- Create test-setup.ts to import jest-dom matchers
- Configure Vitest to use setup file
- All UI package tests now passing

Fixes test failures with toHaveTextContent and other DOM matchers.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-25 22:22:35 +10:00

9 lines
186 B
TypeScript

import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'happy-dom',
setupFiles: ['./src/test-setup.ts'],
},
});