- 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>
9 lines
186 B
TypeScript
9 lines
186 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: 'happy-dom',
|
|
setupFiles: ['./src/test-setup.ts'],
|
|
},
|
|
});
|