vitest.config.ts 465 B

1234567891011121314151617181920
  1. import path from 'path'
  2. import { defineConfig } from 'vitest/config'
  3. export default defineConfig({
  4. resolve: {
  5. alias: {
  6. 'next/image': path.resolve(__dirname, './__mocks__/next-image.tsx'),
  7. },
  8. },
  9. test: {
  10. environment: 'jsdom',
  11. setupFiles: ['./vitest.setup.ts'],
  12. reporters: [['default']],
  13. coverage: {
  14. reporter: ['lcov'],
  15. exclude: ['**/*.test.ts', '**/*.test.tsx'],
  16. include: ['**/*.ts', '**/*.tsx'],
  17. },
  18. },
  19. })