vite.config.js 375 B

12345678910111213141516
  1. import { defineConfig } from 'vite';
  2. import react from '@vitejs/plugin-react';
  3. export default defineConfig({
  4. plugins: [react()],
  5. test: {
  6. globals: true,
  7. environment: 'node',
  8. include: ['src/__tests__/**/*.test.js'],
  9. coverage: {
  10. provider: 'v8',
  11. reporter: ['text', 'html'],
  12. include: ['src/geometry.js', 'src/constants.js'],
  13. },
  14. },
  15. });