import path from 'path'; import swc from 'unplugin-swc'; import { defineConfig } from 'vitest/config'; export default defineConfig({ test: { /** * For local debugging of the e2e tests, we set a very long timeout value otherwise tests will * automatically fail for going over the 5 second default timeout. */ testTimeout: process.env.E2E_DEBUG ? 1800 * 1000 : process.env.CI ? 30 * 1000 : 15 * 1000, // threads: false, // singleThread: true, // reporters: ['verbose'], typecheck: { tsconfig: path.join(__dirname, 'tsconfig.e2e.json'), }, }, plugins: [ // SWC required to support decorators used in test plugins // See https://github.com/vitest-dev/vitest/issues/708#issuecomment-1118628479 // Vite plugin swc.vite(), // Rollup plugin swc.rollup() as any, ], });