-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.tests.json
More file actions
38 lines (38 loc) · 1.62 KB
/
Copy pathtsconfig.tests.json
File metadata and controls
38 lines (38 loc) · 1.62 KB
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
31
32
33
34
35
36
37
38
{
// Test/spec project (PP-4k76). Referenced by the root tsconfig.json so
// tsserver assigns test files to THIS project — giving them the path aliases
// (via tsconfig.base.json), node types, vitest globals, and jest-dom matchers
// they need — instead of an inferred project that has none.
//
// `composite: true` makes it referenceable from the root. The
// `references: [tsconfig.app.json]` is load-bearing: test files import
// production source, and without the reference a composite project would
// demand every such import be listed in its own `include` (TS6307).
// Referencing the app project lets those imports resolve to their real owner.
//
// `noEmit` is NOT set here (a referenced composite project may not disable
// emit — TS6310); emit is suppressed by the `--noEmit` flag in the
// typecheck:tests script. No output is ever produced.
"extends": "./tsconfig.base.json",
"compilerOptions": {
"composite": true,
"strict": true,
"types": ["vitest/globals", "@testing-library/jest-dom"],
// See the matching note in tsconfig.app.json — including the warning that
// this is not a no-op. Here the emit-over-input file is
// eslint-rules/no-restricted-disable-directives.mjs, pulled in by
// src/test/lint/*.test.ts. Needed only by oxlint's tsgolint engine.
// Gitignored. (PP-4zcj.)
"outDir": "./.oxlint-tsbuild/tests"
},
"references": [{ "path": "./tsconfig.app.json" }],
"include": [
"src/**/*.test.ts",
"src/**/*.test.tsx",
"src/**/*.spec.ts",
"src/**/*.spec.tsx",
"src/test/**/*",
"scripts/**/*.test.ts",
"vitest.config.ts"
]
}