From 6fc8cc32cacc2a75a43015a988e5deb92585248e Mon Sep 17 00:00:00 2001 From: Lain Soykaf Date: Thu, 8 Jan 2026 15:09:41 +0400 Subject: [PATCH] Test: exclude Playwright e2e specs from vitest Vitest picks up *.spec.js under test/ by default; exclude test/e2e-playwright while preserving default excludes. --- vite.config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vite.config.js b/vite.config.js index ca48ce3bf..4bba3da86 100644 --- a/vite.config.js +++ b/vite.config.js @@ -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',