-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
TS jest.config.ts error: SyntaxError: Unexpected token 'export' #10652
Comments
@Gamote any thoughts on this? (PR for supporting |
@rafgraph Hmm, looks like the |
@Gamote I am also having the same issue on a brand new project. Thanks for looking into this!
|
Out in 26.6.1 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🐛 Bug Report
Using
jest.config.ts
and runningjest
I get the following error:I have TypeScript setup for es modules, but maybe there is something else I'm missing,
tsconfig.json
here. I installedts-node
and copied thejest.config.ts
from the docs.To Reproduce
Create
jest.config.ts
:Run
npx jest
Expected behavior
For
jest.config.ts
to parse and tests to run.Link to repl or repo (highly encouraged)
Trying to convert the jest config from js to ts in this repo branch:
https://github.com/rafgraph/detect-it/tree/jest-ts-config
envinfo
The text was updated successfully, but these errors were encountered: