vitest.expected.config.ts 753 B

12345678910111213141516171819
  1. import { availableParallelism } from 'node:os'
  2. import tsconfigPaths from 'vite-tsconfig-paths'
  3. import { defineConfig } from 'vitest/config'
  4. import { standardDecoratorPlugin, vitestExecArgv } from './vitest.shared.ts'
  5. /** Owner-local assembled expected-output tests that do not use a recorded session as their input. */
  6. export default defineConfig({
  7. plugins: [tsconfigPaths({ projects: ['./tsconfig.base.json'] }), standardDecoratorPlugin()],
  8. test: {
  9. execArgv: vitestExecArgv,
  10. setupFiles: ['./scripts/test-proxy-environment.ts', './scripts/test-invariants.ts'],
  11. include: [
  12. 'apps/cli/tests/**/*.expected.e2e.ts',
  13. ],
  14. testTimeout: 120_000,
  15. hookTimeout: 30_000,
  16. maxWorkers: Math.min(5, availableParallelism()),
  17. },
  18. })