-
Notifications
You must be signed in to change notification settings - Fork 460
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
V23: relative path in extends field of tsconfig.json does not work as expected. #636
Comments
Thanks @Ailrun for reporting this. Can you please provide a minimal repo where the issue can be reproduced. It'd save us a lot of time addressing the issue. |
@huafu https://github.com/Ailrun/ts-jest-issue636 here it is. |
The repo works with
|
@Ailrun in your repo the path in Found the issue and fixing it right now, thanks again! |
Hmmm actually I was wrong. I meant, I'd love to do it so that a |
Hi there! I think I have this problem as well and I don't know if it was fixed?
Is this already possible? Use case: We have a project structure like that. https://github.com/Mercateo/ws Example: Then we call it with In v22 I've written In v23 my old config breaks and I get the error |
@donaldpipowitch I'll advise you to come chat on slack about this. I'll be available in a few. Until then, you can try ts-jest beta: #697 if you feel like it. |
Thanks, I'll do that. (Also tried the beta already. 👍) |
I just made a quick test with |
Suppose that we have following directory structure.
And also suppose that
tsconfig.dev.json
andtsconfig.test.json
extend./tsconfig.base.json
,jest.config.js
have following content.For this case, running
tsc -p config/tsconfig.dev.json
inproject
directory works well, butjest --config=./config/jest.config.js
does not work with errorIMO, this problem probably came from following line,
ts-jest/src/utils.ts
Line 37 in 6741e63
which is changed in e5ad58e
tsconfig.test.json
reads<project directory>/config/tsconfig.base.json
Output from your debug log
I tried test with
TS_JEST_DEBUG="true"
, butdebug.txt
file does not generated.Link to a minimal repo that reproduces this issue
Optional (but highly recommended) - Configure Travis (or your favorite system) with the minimal repo
This allows potential solutions to be tested against the minimal repo. This saves everyone time and avoids a lot of back and forth.
The text was updated successfully, but these errors were encountered: