blob: 7423b449421b62cb0d5a12f38906e0745619b4dc [file] [log] [blame]
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
// TODO(https://iavm.xyz/b/twpowertools/256): Remove once tests are not run
// outside Bazel.
exclude: [
'**/node_modules/**',
'**/dist/**',
'**/cypress/**',
'**/.{idea,git,cache,output,temp}/**',
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*',
'bazel-*/**',
],
globals: true,
environment: 'jsdom',
coverage: {
provider: 'v8',
reportsDirectory: './out/coverage',
},
// We only want to see console logs printed for failing tests, since
// otherwise they just pollute the test's STDOUT.
silent: 'passed-only',
},
server: {
watch: {
ignored: ['**/.jj/**'],
},
},
});