-
Notifications
You must be signed in to change notification settings - Fork 457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript 3.4's tsBuildInfoFile option breaks ts-jest #1095
Comments
Based on the error message, it means also that specifying incremental: true with tsBuildInforFile will result in the same error ? |
I think specifying |
Hi. I've gotten this working with typescripts project reference set up. It works just fine. Thanks, this project helped me resolve the issue where jest was picking up renamed and old files from the tsc --watch build because tsc -w doesnt delete deleted files. It's also super neat to have type errors with the rest! Per https://www.typescriptlang.org/docs/handbook/project-references.html Per linked repo, the workspace tsconfig.json has composite: true, which is not required. == Details This worked for me: = Directory Structure = tsconfig.json set up (2, 3) must have the other keys, including = Debugging |
@nullxone the linked repo is set up to be referenced by another project, so I think you would probably find that you can reproduce this issue in your setup if you add a |
Yes, I was able to reproduce the issue as you described. Here is a workaround. project You can also include the actualtsconfig.json file from other projects that reference this one. |
Issue :
Typescript 3.4 introduces .tsbuildinfo files for incremental compilation, and the
tsBuildInfoFile
compiler option to customize the location of the generated files.The presence of this option in tsconfig.json causes ts-jest to abort with the following error:
This happens even though
composite
istrue
in tsconfig.jsonExpected behavior :
ts-jest doesn't abort with tsconfig that includes
{ composite: true, tsBuildInfoFile: "path/to/tsbuildinfo" }
.Debug log:
log file content
Minimal repo :
https://github.com/haines/ts-jest-tsbuildinfo-bug-repro
https://travis-ci.org/haines/ts-jest-tsbuildinfo-bug-repro
The text was updated successfully, but these errors were encountered: