You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pegjs/test/browser.stub.js

22 lines
405 B
JavaScript

6 years ago
"use strict";
/*
This file is loaded through Webpack to automatically get mocha test files,
and create a valid bundled file that executes on the browser.
*/
require( "mocha/mocha.js" );
mocha.setup( {
reporter: "html",
ui: "bdd",
} );
const context = require.context( "./", true, /.+\.(spec|test)\.js?$/ );
6 years ago
context.keys().forEach( context );
process.nextTick( () => mocha.run() );