-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
vitest.ci.config.ts
33 lines (29 loc) · 1.03 KB
/
vitest.ci.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
/*
* SPDX-FileCopyrightText: 2022 Ethaks <[email protected]>
*
* SPDX-License-Identifier: EUPL-1.2
*/
import defaultConfig from "./vitest.config";
const config = defaultConfig;
if (!config.test) throw new Error("No test config found!");
config.test.reporters = ["default", "junit"];
config.test.outputFile = { junit: "junit.xml" };
config.test.coverage = {
provider: "v8",
reporter: ["cobertura", "lcov", "text"],
all: true,
include: ["src/module"],
exclude: [
// Exclude data.ts files, since they should only contain declarations or immediately adjacent minimal code
"**/*-data.ts",
// Exclude pack utils, since they are not part of the usual module's code and should only be run by devs
"src/module/pack-utils/**/*.ts",
// Exclude hot reload code, as it only runs in dev environment
"src/module/hmr.ts",
// Exclude dev utils, as they only run in dev environment
"src/module/dev",
// Exclude entry point file containing only imports and Hooks
"src/module/pf1spheres.ts",
],
};
export default config;