Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
tests.forEach((t) => {
let testResults;
if (errorsPerFile[t.path]) {
testResults = fail({
start,
end: +new Date(),
test: { path: t.path, errorMessage: errorsPerFile[t.path] },
});
} else {
testResults = pass({ start, end: +new Date(), test: { path: t.path } });
}
onResult(t, testResults);
});
resolve();