mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-07 12:57:47 +00:00
27 lines
888 B
TypeScript
27 lines
888 B
TypeScript
/// <reference types="vitest" />
|
|
import { defineConfig } from 'vite';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
// Use of process.chdir prohibits usage of the default "threads". https://vitest.dev/config/#forks
|
|
pool: 'forks',
|
|
env: {
|
|
// Vitest supresses color output when `process.env.CI` is true
|
|
// so override that behavior
|
|
// Issue: https://github.com/vitest-dev/vitest/issues/2732
|
|
// Fix: https://github.com/JoshuaKGoldberg/expect-no-axe-violations/pull/3/files
|
|
FORCE_COLOR: '1',
|
|
},
|
|
exclude: [
|
|
// default
|
|
'**/node_modules/**',
|
|
'**/dist/**',
|
|
'**/cypress/**',
|
|
'**/.{idea,git,cache,output,temp}/**',
|
|
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*',
|
|
// some artifacts in the fixtures have spec files that we're not using
|
|
'**/*.spec.js',
|
|
],
|
|
},
|
|
});
|