Add vitest inside TypeScript

This commit is contained in:
Anthony Rey committed 2023-02-22 11:33:47 +01:00
1 parent 820e796fd8
commit 95a5db2080
6 files changed
+7917 -3861

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
import {defineConfig} from 'vitest/config';
import tsconfigPaths from 'vite-tsconfig-paths';
export default defineConfig({
plugins: [tsconfigPaths()],
test: {
globals: true,
include: ['test/vitest/**/*.{spec,test}.{js,ts}'],
coverage: {
provider: 'istanbul',
reporter: ['text', 'html']
}
},
});