forked from mui/base-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.mts
More file actions
24 lines (22 loc) · 763 Bytes
/
vitest.config.mts
File metadata and controls
24 lines (22 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { resolve, dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
import { defineConfig } from 'vitest/config';
const CURRENT_DIR = dirname(fileURLToPath(import.meta.url));
const WORKSPACE_ROOT = resolve(CURRENT_DIR, './');
export default defineConfig({
test: {
projects: [
'packages/*/vitest.config.mts',
'docs/vitest.config.mts',
'test/e2e/vitest.config.mts',
'test/regressions/vitest.config.mts',
],
coverage: {
provider: 'istanbul',
reporter: [['text', { maxCols: 200 }], 'lcov'],
reportsDirectory: resolve(WORKSPACE_ROOT, 'coverage'),
include: ['packages/*/src/**/*.ts', 'packages/*/src/**/*.tsx'],
exclude: ['**/*.test.{js,ts,tsx}', '**/*.test/*'],
},
},
});