Since ts-jest 23.0.0
Version 22.4.6 still working.
error TS18003: No inputs were found in config file 'tsconfig.json'.Specified 'include' paths were '["src/**/*"]' and 'exclude' paths were '["./dist"]'
Delete includes: [...] in tsconfig.json can fix this but these is no option.
Older Issue:
I am seeing a similar issue which might be related. It looks like all of the paths in the tsconfig file are relative to the current working process not the current directory. I noticed this because my tests are failing because it cannot find the file from my extends property. I was able to reproduce this here https://github.com/plee-nm/ts-jest . Please let me know if you need any more information.
I'm also experiencing the same thing:
Some errors occurred while attempting to read from /myProject/src/specs/tsconfig.json: message TS6096: File '../../tsconfig' does not exist.
I'm running the "test" script from my package.json, which is simply "jest". And my jest config is this:
"globals": {
"ts-jest": {
"tsConfigFile": "src/specs/tsconfig.json"
}
},
With ts-jest version 22.4.2 there is no error.
Any updates on this? It seems like any relative path file reading is broken from 23 release. Please let me know if you need more information.
The latest version (23.1.2) addressed some issues related to relative paths. Also <rootDir> can now be used in tsConfigFile as in other jest options.
Feel free to re-open this issue, providing the link to a minimal repo where we can reproduce the issue, in case the problem persist.
Most helpful comment
I'm also experiencing the same thing:
I'm running the
"test"script from mypackage.json, which is simply"jest". And my jest config is this:With
ts-jestversion22.4.2there is no error.