-
-
Notifications
You must be signed in to change notification settings - Fork 180
Expand file tree
/
Copy pathvitest.config.ts
More file actions
30 lines (28 loc) · 866 Bytes
/
vitest.config.ts
File metadata and controls
30 lines (28 loc) · 866 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 {defineConfig, configDefaults} from "vitest/config";
export default defineConfig({
test: {
exclude: [
...configDefaults.exclude,
"./llama"
],
pool: "forks",
maxWorkers: 1,
maxConcurrency: 1,
snapshotSerializers: [
"./test/utils/helpers/llamaTextSerializer.ts",
"./test/utils/helpers/SpecialTokensTextSerializer.ts",
"./test/utils/helpers/SpecialTokenSerializer.ts"
],
setupFiles: ["./test/utils/helpers/testSetup.ts"],
experimental: {
nodeLoader: false
}
// uncomment for profiling
// execArgv: [
// "--cpu-prof",
// "--cpu-prof-dir=test-runner-profile",
// "--heap-prof",
// "--heap-prof-dir=test-runner-profile"
// ]
}
});