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