Commit 15e46b2
committed
fix(test): ignore node_modules type diagnostics in ts-jest
Removing patch-package (which rewrote ali-oss's process.browser) made
ts-jest type-check ali-oss's bundled .ts source and fail with TS2339,
breaking npm test on all CI platforms. transformIgnorePatterns does not
exclude node_modules, so ts-jest compiles the imported .ts.
Scope ts-jest diagnostics to exclude node_modules, keeping type-checking
for our own code while ignoring third-party .ts type errors. npm build
and typecheck were unaffected (they resolve ali-oss's .js entry).1 parent acd6fb3 commit 15e46b2
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments