Anil Kumar
1 min readMay 1, 2020

--

in Angular 9 version

const filterRegExp = (tags) ? new RegExp(tags, ‘g’) : /\.spec\.ts$/,context = require.context(‘./’, true, /\.spec\.ts$/),specFiles = context.keys().filter(path => filterRegExp.test(path));// and load the modules.specFiles.map(context);

tag not able to resolve.

--

--