Closed
Description
🐛 Bug Report
Compiler errors are not detected in any typescript file if an exclude option is present. The exclude option appears to exclude all files no matter what is specified. Eg. exclude: ['NOTHING']
causes all source files to be excluded from type-checking.
To Reproduce
Steps to reproduce the behavior:
- Unzip the attached tsJestExclude.zip
- yarn
- yarn test
Note that the compiler errors in thing.test.ts are not detected. If you remove the exclude from jest.config.js, then they'll be detected. You can also add similar errors to thing.ts and it also won't be detected.
Expected behavior
Errors should be reported in files that don't match the entries in the exclude option.
envinfo
System:
OS: Windows
Node version: v14.16.1
Yarn version: 1.22.5
Npm packages:
jest:
ts-jest:
typescript:
Activity
[-]exclude option excludes all files from compl[/-][+]exclude option excludes all files from compilation[/+][-]exclude option excludes all files from compilation[/-][+]exclude option excludes all files from type checking[/+]exclude
should only exclude files which match glob values #2637fix(config): `exclude` should only exclude files which match glob val…
Update dependency ts-jest to v29 (#110)