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

[Request] TypeScript integration guide #1173

Open
tifrel opened this issue Sep 20, 2020 · 0 comments
Open

[Request] TypeScript integration guide #1173

tifrel opened this issue Sep 20, 2020 · 0 comments
Labels
domain-documentation Related to Intern's documentation
Projects

Comments

@tifrel
Copy link

tifrel commented Sep 20, 2020

What's wrong?

A config line line from the official documentation currently breaks tests with TS (source in TS, tests in TS). However I titled this Issue as request for a TypeScript integration guide, because I also encountered issues with certain options in my tsconfig.json, unfortunately I cannot recall the keys right now. At one point not even the debug flag would help and intern just exited non-zero, no message or anything.

Possible solution

Quite often the problem with TS and Intern are related to importing/exporting, maybe the stuff can be fixed there. Also, just better documentation of using Intern with TypeScript would be very much appreciated.

Steps to reproduce (for bugs)

  1. Have running and passing tests
  2. Add "plugins": "node_modules/ts-node/register/index.js", to your intern.json
  3. Get TSError: ⨯ Unable to compile TypeScript:

Environment

Intern version: 4.8.7
Node version: 14.10
NPM version: 6.14.7
TypeScript version: 4.0.2
ts-node version: 9.0.0

@github-actions github-actions bot added the needs-verification Needs to be verified label Sep 20, 2020
@github-actions github-actions bot added this to Triage in Development Sep 20, 2020
@jason0x43 jason0x43 added domain-documentation Related to Intern's documentation and removed needs-verification Needs to be verified labels Sep 25, 2020
@jason0x43 jason0x43 moved this from Triage to To do in Development Sep 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain-documentation Related to Intern's documentation
Projects
Development

No branches or pull requests

2 participants