import "mocha" ; import { MochaReporter } from "./mochaReporter" ; const tests = require . context ( "./test" , true , /\.tsx?$/ ) ; tests . keys ( ) . forEach ( tests ) ; mocha . setup ( { reporter : MochaReporter , } ) ; mocha . run ( ) ;