Skip to content

Commit ca42de3

Browse files
committed
chore(test): do not run playwright test with vitest
Signed-off-by: Max <max@nextcloud.com>
1 parent 535aa7d commit ca42de3

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

vite.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ const config = createAppConfig(
7878
setupFiles: ['src/tests/setup.mjs'],
7979
environment: 'jsdom',
8080
globals: true,
81+
include: ['src/tests/*.spec.[jt]s', 'src/tests/**/*.spec.[jt]s'],
82+
exclude: ['**/node_modules/**', '**/.git/**', 'src/components/**'],
8183
server: {
8284
deps: {
8385
inline: [/@nextcloud.*/],

vitest.config.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/**
2+
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
3+
* SPDX-License-Identifier: AGPL-3.0-or-later
4+
*/
5+
6+
import vue from '@vitejs/plugin-vue2'
7+
import { defineConfig } from 'vitest/config'
8+
9+
export default defineConfig({
10+
plugins: [vue()],
11+
test: {
12+
setupFiles: ['src/tests/setup.mjs'],
13+
environment: 'jsdom',
14+
globals: true,
15+
include: ['src/tests/*.spec.[jt]s', 'src/tests/**/*.spec.[jt]s'],
16+
exclude: ['**/node_modules/**', '**/.git/**', 'src/components/**'],
17+
server: {
18+
deps: {
19+
inline: [/@nextcloud.*/],
20+
},
21+
},
22+
},
23+
})

0 commit comments

Comments
 (0)