6 lines
210 B
JavaScript
6 lines
210 B
JavaScript
// require all modules ending in ".test.js" from the
|
|
// current directory and all subdirectories
|
|
const testsContext = require.context('./spec', true, /\.test\.js$/);
|
|
|
|
testsContext.keys().forEach(testsContext);
|