Skip to content

Commit c77b760

Browse files
committed
feat: update vitest configuration to exclude Playwright tests
1 parent c805655 commit c77b760

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vitest.config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defineConfig } from 'vitest/config'
1+
import { defineConfig, configDefaults } from 'vitest/config'
22
import react from '@vitejs/plugin-react'
33
import path from 'path'
44

@@ -8,10 +8,11 @@ export default defineConfig({
88
environment: 'jsdom',
99
setupFiles: ['./vitest.setup.ts'],
1010
globals: true,
11+
exclude: [...configDefaults.exclude, 'playwright/**'],
1112
},
1213
resolve: {
1314
alias: {
1415
'@': path.resolve(__dirname, '.'),
1516
},
1617
},
17-
})
18+
})

0 commit comments

Comments
 (0)