README
export-context
A method that has not been export can be run via the context. It will be able to unit test of unexport methods. Further, if necessary of dom can test by creating a document in global. Esnext code is transpile using the babel.
install
npm install export-context --save-dev
# or if using yarn
yarn
setup
import ExportContext from 'export-context';
// configure option
const options = {
basePath: './',
babel: {
presets: ['latest'],
plugins: ['transform-runtime']
},
dom: true,
html: '<div class="box">example</div>',
vm: {
filename: <string>,
lineOffset: <number>,
columnOffset: <number>,
displayErrors: <boolean>,
timeout: <number>,
breakOnSigint: <boolean>
}
};
const modules = {
'_': 'lodash',
'