Skip to content

Commit

Permalink
add section to the readme about ESM support
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Oct 31, 2023
1 parent a92564c commit b4001fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,3 +288,6 @@ The other two commands delegate to `scenario-tester`:
* `--scenario <name>` — pick only one specific scenario.
* `--outdir <path>` — path to directory, where to emit a derivative project codebase of the scenario.

### ESM Support

If you are writing your scenario-tests in ESM files you can use the provided `scenario-tester-esm` bin to load your files (exactly as described above). We unfortunately couldn't unify the `scenario-tester` and `scenario-tester-esm` because of a [bug in ts-node](https://github.com/TypeStrong/ts-node/issues/1997) that prevented us from adding ESM support as a minor non-breaking change. If this gets fixed upstream we could potentially unify the implementations in a future release.

0 comments on commit b4001fd

Please sign in to comment.