-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathvitest.shared.ts
More file actions
22 lines (21 loc) · 727 Bytes
/
vitest.shared.ts
File metadata and controls
22 lines (21 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { defineProject } from "vitest/config";
/**
* Shared Vitest project configuration used across the repository.
*
* This constant defines common test settings to be applied to projects created
* with `defineProject`. It ensures:
* - `setupFiles` includes the Allure setup module ('allure-vitest/setup')
* so Allure reporting is initialized before tests run.
* - `environment` is set to `'node'` so tests execute in a Node.js environment.
*
* Intended to be extended or merged into per-project configurations to keep
* test setup consistent across multiple projects.
*
* @constant
*/
export const configShared = defineProject({
test: {
setupFiles: ["allure-vitest/setup"],
environment: "node",
},
});