Test: exclude Playwright e2e specs from vitest

Vitest picks up *.spec.js under test/ by default; exclude test/e2e-playwright while preserving default excludes.
This commit is contained in:
Lain Soykaf 2026-01-08 15:09:41 +04:00
commit 6fc8cc32ca

View file

@ -1,6 +1,7 @@
import { fileURLToPath } from 'node:url'
import { dirname, resolve } from 'node:path'
import { defineConfig } from 'vite'
import { configDefaults } from 'vitest/config'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import stylelint from 'vite-plugin-stylelint'
@ -217,6 +218,10 @@ export default defineConfig(async ({ mode, command }) => {
},
test: {
globals: true,
exclude: [
...configDefaults.exclude,
'test/e2e-playwright/**'
],
browser: {
enabled: true,
provider: 'playwright',