sideloader
v0.1.0
Published
Allow test frameworks to dynamically require (sideload) .mjs test files
Downloads
1
Readme
sideloader
Allow test frameworks to dynamically require (sideload) .mjs test files
Usage
ava
// ava.config.js
export default {
babel: false,
compileEnhancements: false,
extensions: ['mjs', 'js'],
require: ['sideloader']
};
NODE_OPTIONS='--experimental-modules --loader sideloader' ava test/
mocha
TODO
install
npm i -D sideloader