Make tests (and sourcemap) work with webpack4

This commit is contained in:
ahocevar
2018-06-08 13:00:10 +02:00
parent 2837272590
commit da755d9e84
3 changed files with 15 additions and 63 deletions

5
test/index_test.js Normal file
View File

@@ -0,0 +1,5 @@
// require all modules ending in ".test.js" from the
// current directory and all subdirectories
const testsContext = require.context('.', true, /\.test\.js$/);
testsContext.keys().forEach(testsContext);