test: exclude local worktrees from vitest discovery
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m4s

This commit is contained in:
Song367 2026-03-21 15:03:19 +08:00
parent 369d6f6886
commit 02f917ba76

View File

@ -1,8 +1,9 @@
import { defineConfig } from 'vitest/config'; import { configDefaults, defineConfig } from 'vitest/config';
export default defineConfig({ export default defineConfig({
test: { test: {
environment: 'node', environment: 'node',
setupFiles: ['./src/test/setup.ts'], setupFiles: ['./src/test/setup.ts'],
exclude: [...configDefaults.exclude, '**/.worktrees/**'],
}, },
}); });