| import { defineConfig } from 'vitest/config'; |
|
|
| export default defineConfig({ |
| test: { |
| |
| environment: 'jsdom', |
|
|
| |
| include: ['**/tests/**/*.test.js'], |
|
|
| |
| exclude: ['**/node_modules/**', '**/*.spec.js', '**/e2e/**'], |
|
|
| |
| setupFiles: ['./tests/vitest-canvas-setup.js', './tests/vitest-setup.js'], |
|
|
| |
| globals: true, |
|
|
| |
| coverage: { |
| provider: 'v8', |
| reporter: ['text', 'lcov', 'html'], |
| include: ['src/aspara/dashboard/static/js/**/*.js'], |
| exclude: ['src/aspara/dashboard/static/js/**/*.test.js', 'src/aspara/dashboard/static/js/**/*.spec.js'], |
| thresholds: { |
| branches: 50, |
| functions: 50, |
| lines: 50, |
| statements: 50, |
| }, |
| }, |
|
|
| |
| testTimeout: 10000, |
|
|
| |
| environmentOptions: { |
| jsdom: { |
| url: 'http://localhost', |
| }, |
| }, |
| }, |
| }); |
|
|