mirror of https://github.com/keeweb/keeweb
parent
974dbd224a
commit
85a67b533a
@ -1,4 +1,14 @@
|
||||
function requireAll(req) {
|
||||
req.keys().forEach(req);
|
||||
req.keys().forEach((mod) => {
|
||||
try {
|
||||
req(mod);
|
||||
} catch (ex) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error('Error while running test', mod, ex.toString());
|
||||
if ('testErrors' in global) {
|
||||
global.testErrors++;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
requireAll(require.context('test/src/', true, /\.js$/));
|
||||
|
Loading…
Reference in new issue