-
Notifications
You must be signed in to change notification settings - Fork 453
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
TSconfig support #8
Comments
Could you share what you'd like and how that would be different from the current setup? I'd definitely like to improve this. |
How about: "globals": {
"__TS_CONFIG__": {
"module": "commonjs",
"jsx": "react"
}
} You have: "globals": {
"__TS_JEST__": {
"tsconfig": "./my-tsconfig.json"
}
} in const path = require('path');
const config = require(path.resolve(globals.__TS_JEST__.tsconfig));
return tsc.convertCompilerOptionsFromJson(config.compilerOptions).options; It should actually be optional, and you should automatically get the default |
I'll take a look at this on the weekend or if you want to take a stab at it, I'd welcome a PR :) |
Is it planned? Or there are some restrictions for using more common way for ts developers instead of tweaking package.json?
The text was updated successfully, but these errors were encountered: