Exclude test files from frontend production TypeScript build
Test files use Vitest globals (vi, describe, it, expect) which aren't available to tsc during production builds. Exclude __tests__ dirs and *.test.* / *.spec.* files from tsconfig.app.json so tsc -b succeeds.
This commit is contained in:
parent
96bcebdb40
commit
34f70b2ba4
1 changed files with 5 additions and 0 deletions
|
|
@ -34,5 +34,10 @@
|
|||
"include": [
|
||||
"src",
|
||||
"public/HexgridHeatmap.js",
|
||||
],
|
||||
"exclude": [
|
||||
"src/**/__tests__/**",
|
||||
"src/**/*.test.*",
|
||||
"src/**/*.spec.*"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue