chore: add vitest project names and fix server config root paths (#26684)

Add `name` to all vitest configs matching CI job buckets (server:unit,
server:medium, cli:unit, web:unit, e2e:server, e2e:maintenance) so they
appear as filterable @tags in the Vitest VSCode extension.

Fix `root` in server vitest configs to use an absolute path derived from
`import.meta.url` instead of `'./'`, which resolved relative to the config
file directory (`server/test/`) rather than `server/`, causing test
discovery to fail in the Vitest VSCode extension.
This commit is contained in:
Min Idzelis
2026-03-04 08:20:43 -05:00
committed by GitHub
parent f94e0fbc39
commit 54bc9ddd69
6 changed files with 16 additions and 2 deletions

View File

@@ -56,6 +56,7 @@ export default defineConfig({
entries: ['src/**/*.{svelte,ts,html}'],
},
test: {
name: 'web:unit',
include: ['src/**/*.{test,spec}.{js,ts}'],
globals: true,
environment: 'happy-dom',