vitest.e2e.config.mts 771 B

12345678910111213141516171819202122232425262728293031
  1. import path from 'path';
  2. import swc from 'unplugin-swc';
  3. import { defineConfig } from 'vitest/config';
  4. export default defineConfig({
  5. plugins: [
  6. // SWC required to support decorators used in test plugins
  7. swc.vite({
  8. jsc: {
  9. transform: {
  10. useDefineForClassFields: false,
  11. },
  12. },
  13. }) as any,
  14. ],
  15. test: {
  16. include: ['e2e/**/*.e2e-spec.ts'],
  17. globals: true,
  18. environment: 'node',
  19. testTimeout: 60000,
  20. pool: 'forks',
  21. poolOptions: {
  22. forks: {
  23. singleFork: true,
  24. },
  25. },
  26. typecheck: {
  27. tsconfig: path.join(__dirname, 'config/tsconfig.e2e.json'),
  28. },
  29. },
  30. });