test: vitest disable ssr for tsx files (#7194)

https://vitest.dev/config/#transformmode-web
This commit is contained in:
Delyan Haralanov 2022-04-17 10:24:33 +03:00 committed by GitHub
parent 83aba9fd7a
commit 8b7d29989a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,5 +12,8 @@ export default defineConfig({
include: ['**/*.vitest.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
exclude: ['**/*.test.*', '**/*.spec.*', '**/node_modules'],
environment: 'jsdom',
transformMode: {
web: [/\.[jt]sx$/],
},
},
})