2017-04-24 14:30:16 +01:00

5 lines
144 B
TypeScript

// Find all the tests.
const context = (<any>require).context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);