8b7bff7ac3
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.
24 lines
426 B
JavaScript
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() );
|