-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
30 lines (29 loc) · 861 Bytes
/
vitest.config.ts
File metadata and controls
30 lines (29 loc) · 861 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
25
26
27
28
29
30
import { coverageConfigDefaults, defineConfig } from "vitest/config";
export default defineConfig({
test: {
projects: ["packages/*"],
globals: true,
reporters: ["default", "junit"],
outputFile: {
// needed for Bitbucket Pipeline
// see https://support.atlassian.com/bitbucket-cloud/docs/test-reporting-in-pipelines/
junit: "test-results/junit.xml",
},
coverage: {
provider: "v8",
reporter: ["html", "text", "lcov", "json"],
reportsDirectory: "./coverage/unit",
include: ["packages/**/src/**/**.{js,jsx,ts,tsx,vue}"],
exclude: [
...coverageConfigDefaults.exclude,
"packages/styles/",
"**/*.d.ts",
"**/{index,types,enums}.ts",
"**/*.stories.ts",
".storybook/**",
"test-results/**",
"test-utils/**",
],
},
},
});