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:
parent
b8bfd6b1a9
commit
6fc8cc32ca
1 changed files with 5 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
import { fileURLToPath } from 'node:url'
|
import { fileURLToPath } from 'node:url'
|
||||||
import { dirname, resolve } from 'node:path'
|
import { dirname, resolve } from 'node:path'
|
||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from 'vite'
|
||||||
|
import { configDefaults } from 'vitest/config'
|
||||||
import vue from '@vitejs/plugin-vue'
|
import vue from '@vitejs/plugin-vue'
|
||||||
import vueJsx from '@vitejs/plugin-vue-jsx'
|
import vueJsx from '@vitejs/plugin-vue-jsx'
|
||||||
import stylelint from 'vite-plugin-stylelint'
|
import stylelint from 'vite-plugin-stylelint'
|
||||||
|
|
@ -217,6 +218,10 @@ export default defineConfig(async ({ mode, command }) => {
|
||||||
},
|
},
|
||||||
test: {
|
test: {
|
||||||
globals: true,
|
globals: true,
|
||||||
|
exclude: [
|
||||||
|
...configDefaults.exclude,
|
||||||
|
'test/e2e-playwright/**'
|
||||||
|
],
|
||||||
browser: {
|
browser: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
provider: 'playwright',
|
provider: 'playwright',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue