-
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
Enable using "ts-jest" package name directly #361
Comments
I think Jest requires that property to point to a javascript file. Is that not the case? |
martijnthe
pushed a commit
to martijnthe/ts-jest
that referenced
this issue
Nov 6, 2017
This way, the `"ts-jest"` package name can be used as Jest transform, instead of specifying the path to preprocessor.js. The latter did not work when the ts-jest package had been hoisted to a parent folder (for example by lerna). Fixes kulshekhar#361
martijnthe
pushed a commit
to martijnthe/ts-jest
that referenced
this issue
Nov 6, 2017
This way, the `"ts-jest"` package name can be used as Jest transform, instead of specifying the path to preprocessor.js. The latter did not work when the ts-jest package had been hoisted to a parent folder (for example by lerna). Fixes kulshekhar#361
martijnthe
pushed a commit
to martijnthe/ts-jest
that referenced
this issue
Nov 6, 2017
This way, the `"ts-jest"` package name can be used as Jest transform, instead of specifying the path to preprocessor.js. The latter did not work when the ts-jest package had been hoisted to a parent folder (for example by lerna). Fixes kulshekhar#361
martijnthe
pushed a commit
to martijnthe/ts-jest
that referenced
this issue
Nov 6, 2017
This way, the `"ts-jest"` package name can be used as Jest transform, instead of specifying the path to preprocessor.js. The latter did not work when the ts-jest package had been hoisted to a parent folder (for example by lerna). Fixes kulshekhar#361
martijnthe
pushed a commit
to martijnthe/ts-jest
that referenced
this issue
Nov 6, 2017
This way, the `"ts-jest"` package name can be used as Jest transform, instead of specifying the path to preprocessor.js. The latter did not work when the ts-jest package had been hoisted to a parent folder (for example by lerna). Fixes kulshekhar#361
@kulshekhar: no it can also be a package name. |
Reopening as the PR for this was reverted due to #367 |
Fixed in #373 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would like to be able to:
Trying this today leads to:
The fix is easy, just export a
process
property that points to the preprocessor function fromindex.ts
.In general, I don't think assuming that
<rootDir>/node_modules/ts-jest/preprocessor.js
exists is a good idea.For example, when using lerna packages might get hoisted to a
node_modules
of parent directory.FWIW, it's possible to use
"babel-jest"
like this.See above.
See above.
N/A
The text was updated successfully, but these errors were encountered: