-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
21 lines (20 loc) · 876 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
21 lines (20 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { configDefaults, defineConfig } from "vitest/config";
export default defineConfig({
test: {
// Runs write SRD trees and clone OSS repos into /tmp and .construct working
// dirs — never collect tests from those trees or from the fixtures.
exclude: [...configDefaults.exclude, "**/.construct/**", "tests/fixtures/**"],
// Isolates the on-disk HTTP cache per run — without it the suite reads and
// writes the developer's real ~/.cache/construct.
setupFiles: ["tests/setup.ts"],
coverage: {
provider: "v8",
include: ["src/**"],
// The vendored engines are pinned artifacts with their own suites and
// their own ratchets in their own repositories, and their bytes are
// verified against a sha256 rather than edited here.
exclude: ["src/vendor/**"],
reporter: ["text", "lcov"],
},
},
});