pegjs/test/browser.stub.js
Futago-za Ryuu 8b7bff7ac3 Resolve linting errors
This also temporarliy disables linting '.ts' files due to the fact that the currect '.d.ts' files contain too many errors/warnings that need to be manually fixed, but since I'm going to be rewriting the whole module in TypeScript anyway, resolving these ESLint error's is a pointless waste of time.
2019-09-29 03:24:42 +01:00

24 lines
426 B
JavaScript

/* globals mocha */
"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?$/ );
context.keys().forEach( context );
process.nextTick( () => mocha.run() );