You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: ES Module Loaders are experimental so I realise that per tape’s conservative approach this issue will not be considered until they are not (which is perfectly fine, I just want to document the use case so it might eventually be considered).
Summary
Since tape is CJS, you cannot run your tests using a custom ES Module Loader if your app uses one.
An ESM version of tape would allow you to.
Workaround
I’ve just released version 2.0.0 of @small-tech/esm-tape-runner that allows you to run your tests using your custom ES Module Loader.
Note: ES Module Loaders are experimental so I realise that per tape’s conservative approach this issue will not be considered until they are not (which is perfectly fine, I just want to document the use case so it might eventually be considered).
Summary
Since tape is CJS, you cannot run your tests using a custom ES Module Loader if your app uses one.
An ESM version of tape would allow you to.
Workaround
I’ve just released version 2.0.0 of @small-tech/esm-tape-runner that allows you to run your tests using your custom ES Module Loader.
See: https://github.com/small-tech/esm-tape-runner#advanced-usage-with-custom-es-module-loaders
The text was updated successfully, but these errors were encountered: