vitest.config.js 614 B

1234567891011121314151617181920212223
  1. /**
  2. * Config for global end-to-end tests
  3. * placed in project root tests folder
  4. * @type {import('vite').UserConfig}
  5. * @see https://vitest.dev/config/
  6. */
  7. const config = {
  8. test: {
  9. /**
  10. * By default, vitest search test files in all packages.
  11. * For e2e tests have sense search only is project root tests folder
  12. */
  13. include: ['./tests/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
  14. /**
  15. * A default timeout of 5000ms is sometimes not enough for playwright.
  16. */
  17. testTimeout: 120000 * 5,
  18. hookTimeout: 120000 * 5,
  19. },
  20. };
  21. export default config;