Skip to content

Commit

Permalink
Added warning about esm support
Browse files Browse the repository at this point in the history
PR-URL: #655
Credit: @ozonep
Close: #655
Reviewed-by: @isaacs
  • Loading branch information
ozonep authored and isaacs committed Nov 13, 2020
1 parent 02a3f7c commit 7372e60
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/src/content/docs/using-with/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@ ES-Modules are supported by default, using the [esm](http://npm.im/esm) module.
If your test file ends in `.mjs`, then this will automatically use Node's
built-in experimental module system.

To turn _off_ ES-Module support (as may be required in some edge cases), run
your tests with `--no-esm`.
Although, if you are using ES-modules with `.js` extension & `type: module` pattern
on Node.js v12.13+, you will face warnings and/or crashes while running tests.
In this case it is advised to turn "esm" support off & use native Node.js
module loader.

To turn _off_ ES-Module support, run your tests with `--no-esm`.

In future releases (v15+) "esm" module will not be provided by tap.

# Using tap with TypeScript

Expand Down

0 comments on commit 7372e60

Please sign in to comment.