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

Question / Request for documentation examples #66

Open
AlexJeffcott opened this issue Jul 11, 2022 · 1 comment
Open

Question / Request for documentation examples #66

AlexJeffcott opened this issue Jul 11, 2022 · 1 comment

Comments

@AlexJeffcott
Copy link

I am guessing that many, like myself, would like to use esbuild-runner in their Typescript tool chain.

It would be very useful for people who want to try things out to have working examples with different links in the chain other than Jest. For examples might include how to use with:

  • mocha
  • node 18's test runner
  • nyc
  • c8

I would be more than happy to help with this but my attempts to get it to work with node --test -r esbuild-runner/register have failed...

@AlexJeffcott
Copy link
Author

It turns out that node --test -r esbuild-runner/register works well, but because of the runner execution model it won't find .ts files unless they are added explicitly: node --test -r esbuild-runner/register src/fancy.test.ts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant