-
Notifications
You must be signed in to change notification settings - Fork 3
/
vitest.config.ts
43 lines (41 loc) · 1.08 KB
/
vitest.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Configure Vite (https://vitejs.dev/config/)
// Configure Vitest (https://vitest.dev/config/)
import {
defineConfig,
// configDefaults,
} from 'vitest/config'
import GithubActionsReporter from 'vitest-github-actions-reporter'
export default defineConfig({
test: {
// globals: true,
// environment: 'happy-dom',
include: ['**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
dir: 'packages/core/src',
// exclude: [...configDefaults.exclude, 'other/*', 'packages/playground/*'],
testTimeout: 5000,
globalSetup: ['./vitestGlobalSetup.ts'],
reporters: process.env.GITHUB_ACTIONS
? ['default', new GithubActionsReporter()]
: 'default',
coverage: {
enabled: true,
// provider: 'v8',
// allowExternal: true,
//
provider: 'istanbul',
all: true,
include: ['**/packages/core/src/**'],
reporter: [
'html-spa',
// 'html',
'text',
// 'clover',
'lcov',
// 'json',
],
reportsDirectory: './coverage',
clean: true,
cleanOnRerun: true,
},
},
})