source/test.ts
import { build } from './build';
import {
executeCommand,
log,
wasCalledFromCLI
} from './helpers';
export function testTypeScriptBuild(): void {
log('Running TypeScript unit tests.');
executeCommand('mocha', [
'--recursive',
'"./build/**/*.spec.js"'
]);
}
// eslint-disable-next-line @typescript-eslint/no-shadow
export function test(): void {
build();
testTypeScriptBuild();
}
if (wasCalledFromCLI(module)) {
test();
}