You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

vitest.config.js 462B

1234567891011121314151617181920
  1. import {defineConfig} from 'vitest/config';
  2. import vuePlugin from '@vitejs/plugin-vue';
  3. import {stringPlugin} from 'vite-string-plugin';
  4. export default defineConfig({
  5. test: {
  6. include: ['web_src/**/*.test.js'],
  7. setupFiles: ['./web_src/js/test/setup.js'],
  8. environment: 'jsdom',
  9. testTimeout: 20000,
  10. open: false,
  11. allowOnly: true,
  12. passWithNoTests: true,
  13. watch: false,
  14. },
  15. plugins: [
  16. stringPlugin(),
  17. vuePlugin(),
  18. ],
  19. });