-
-
Notifications
You must be signed in to change notification settings - Fork 205
Expand file tree
/
Copy pathvitest.config.ts
More file actions
25 lines (24 loc) · 840 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
25 lines (24 loc) · 840 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
import { defineConfig } from "vitest/config";
// Tests run against tsc's output in dist/ rather than the TypeScript sources:
// the injector discovers dependencies by regex-parsing constructor source text
// (see annotate() in lib/common/helpers.ts), which only matches tsc's emit.
export default defineConfig({
test: {
globals: true,
environment: "node",
include: ["dist/test/**/*.js", "dist/lib/common/test/unit-tests/**/*.js"],
exclude: [
"**/node_modules/**",
"dist/test/files/**",
"dist/test/stubs.js",
"dist/test/test-bootstrap.js",
"dist/test/base-service-test.js",
"dist/lib/common/test/unit-tests/stubs.js",
"dist/lib/common/test/unit-tests/mocks/**",
"dist/lib/common/test/with-done.js",
],
setupFiles: ["./dist/test/test-bootstrap.js"],
testTimeout: 150000,
hookTimeout: 150000,
},
});