Skip to content
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

Documentation discrepancy - tsconfig not tsConfig #2743

Closed
joeyorlando opened this issue Jul 12, 2021 · 3 comments
Closed

Documentation discrepancy - tsconfig not tsConfig #2743

joeyorlando opened this issue Jul 12, 2021 · 3 comments
Labels
Not An Issue Not ts-jest issue

Comments

@joeyorlando
Copy link

🐛 Bug Report

I want to specify a separate tsconfig.test.json for ts-jest as I am using Next.js which has a hard-enforce on jsx: preserve and therefore my initial tsconfig.json is not sufficient.

The current documentation page on tsconfig mentions you can do this by setting global.ts-jest.tsConfig to the filepath to your alternative tsconfig configuration. Could not get this working.

After much debugging/googling around it worked when I tried all lowercase (global.ts-jest.tsconfig), not camelCase (global.ts-jest.tsConfig).

To Reproduce

Documentation link - https://huafu.github.io/ts-jest/user/config/tsConfig

@joeyorlando joeyorlando added Bug Report Needs Repo Need a minimium repository to reproduce the problem Needs Triage labels Jul 12, 2021
@ahnpnl
Copy link
Collaborator

ahnpnl commented Jul 12, 2021

pls use the link https://kulshekhar.github.io/ts-jest . The link you are using is not the correct one :)

@ahnpnl ahnpnl closed this as completed Jul 12, 2021
@ahnpnl
Copy link
Collaborator

ahnpnl commented Jul 12, 2021

tsConfig was deprecated in v26 and removed in v27

@ahnpnl ahnpnl added Not An Issue Not ts-jest issue and removed Bug Report Needs Repo Need a minimium repository to reproduce the problem Needs Triage labels Jul 12, 2021
@joeyorlando
Copy link
Author

@ahnpnl. Thanks for that. Just FYI though, the URL I referenced is the #1 result on Google for "ts-jest tsconfig"
Screen Shot 2021-07-12 at 12 47 36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Not An Issue Not ts-jest issue
Projects
None yet
Development

No branches or pull requests

2 participants