build single test bunding using Webpack context
This commit is contained in:
parent
b72cf7c04b
commit
ade4216642
8 changed files with 81 additions and 31 deletions
6
static/test/test-index.ts
Normal file
6
static/test/test-index.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
declare var require: any;
|
||||
|
||||
|
||||
// Require all modules ending in ".spec.ts" from the js directory and all subdirectories
|
||||
var testsContext = require.context("../js", true, /\.spec\.ts$/);
|
||||
testsContext.keys().forEach(testsContext);
|
Reference in a new issue