Use v8 coverage

This commit is contained in:
Sidharth Vinod
2023-06-28 23:28:23 +05:30
parent c11ac644a1
commit 0d833fb4ce
3 changed files with 150 additions and 10 deletions

View File

@@ -17,7 +17,7 @@ export default defineConfig({
// TODO: should we move this to a mermaid-core package?
setupFiles: ['packages/mermaid/src/tests/setup.ts'],
coverage: {
provider: 'istanbul',
provider: 'v8',
reporter: ['text', 'json', 'html', 'lcov'],
reportsDirectory: './coverage/vitest',
exclude: ['**/node_modules/**', '**/tests/**', '**/__mocks__/**'],