-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathvitest.config.mjs
More file actions
23 lines (22 loc) · 1001 Bytes
/
Copy pathvitest.config.mjs
File metadata and controls
23 lines (22 loc) · 1001 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// SPDX-FileCopyrightText: 2026 Jonas Huber <https://github.com/jh-RLI> © Reiner Lemoine Institut
// SPDX-License-Identifier: AGPL-3.0-or-later
//
// Vitest config scoped to the suites this repo actually maintains. The
// `include` is deliberately narrow so vitest does not pick up unrelated suites
// (the bootstrap theming specs, the factsheet React tests, etc.). The default
// environment stays `node` for pure store/selectors; suites that need a DOM ask
// for one per file with an `@vitest-environment happy-dom` docblock, so a single
// browser-dependent module cannot slow every other test down.
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
include: [
"dataedit/static/dataedit/**/*.test.js",
"dataedit/static/peer_review/**/*.test.js",
"login/static/login/**/*.test.js",
"modelview/static/modelview/**/*.test.js",
"factsheet/frontend/src/components/__tests__/**/*.test.js",
],
environment: "node",
},
});