mermaid/vite.config.ts

19 lines
463 B
TypeScript
Raw Normal View History

2022-09-22 15:35:22 +05:30
import jison from './.vite/jisonPlugin';
import { defineConfig } from 'vitest/config';
export default defineConfig({
resolve: {
extensions: ['.jison', '.js', '.ts', '.json'],
},
plugins: [jison()],
test: {
environment: 'jsdom',
globals: true,
2022-09-25 19:18:16 +01:00
// TODO: should we move this to a mermaid-core package?
setupFiles: ['packages/mermaid/src/tests/setup.ts'],
2022-09-22 15:45:44 +05:30
coverage: {
reporter: ['text', 'json', 'html', 'lcov'],
},
2022-09-22 15:35:22 +05:30
},
});