Update vitest templates

This commit is contained in:
Alex Lohr
2022-11-21 21:31:03 +01:00
parent 8671428a75
commit 28ebc31924
13 changed files with 1064 additions and 1279 deletions
+4 -4
View File
@@ -12,10 +12,10 @@ export default defineConfig({
test: {
environment: 'jsdom',
globals: true,
transformMode: {
web: [/\.[jt]sx?$/],
},
setupFiles: './setupVitest.ts',
transformMode: { web: [/\.[jt]sx?$/] },
setupFiles: ['node_modules/@testing-library/jest-dom/extend-expect.js'],
// otherwise, solid would be loaded twice:
deps: { registerNodeLoader: true },
// if you have few tests, try commenting one
// or both out to improve performance:
threads: false,