folke / esbuild-runner

⚡️ Super-fast on-the-fly transpilation of modern JS, TypeScript and JSX using esbuild
https://www.npmjs.com/package/esbuild-runner
Apache License 2.0
712 stars 24 forks source link

Question / Request for documentation examples #66

Open AlexJeffcott opened 2 years ago

AlexJeffcott commented 2 years ago

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:

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 commented 2 years ago

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.