See CHANGELOG.md for the full v0.16.0 entry. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: ralksta <ralksta@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com> Co-authored-by: Ralf <rohlenbo79@gmail.com> Co-authored-by: Paul Thies <110185070+ImScheinox@users.noreply.github.com> Co-authored-by: lancetm714 <108419425+lancetm714@users.noreply.github.com>
30 lines
868 B
TypeScript
30 lines
868 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import path from 'path';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
// Node stays the default: almost everything under test is plain logic and
|
|
// does not need a DOM. A component test opts in per file with
|
|
// `// @vitest-environment jsdom` in its first docblock (see
|
|
// components/__tests__ for examples), which keeps the fast path fast.
|
|
environment: 'node',
|
|
setupFiles: ['./vitest.setup.ts'],
|
|
include: [
|
|
'lib/__tests__/**/*.test.{ts,tsx}',
|
|
'app/**/__tests__/**/*.test.{ts,tsx}',
|
|
'components/__tests__/**/*.test.{ts,tsx}',
|
|
'scripts/__tests__/**/*.test.{ts,tsx}',
|
|
],
|
|
coverage: {
|
|
provider: 'v8',
|
|
include: ['lib/**/*.ts'],
|
|
exclude: ['lib/__tests__/**'],
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, '.'),
|
|
},
|
|
},
|
|
});
|