Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const options = [
'--testPathPattern=/test/',
'--detectOpenHandles',
'--passWithNoTests',
// '--coverage',
// '--collectCoverageFrom=["app/**/**/*.js", "!app/views/**/*.js", "!app/routes.js"]',
];
if (!this.initialized) {
this.henri.pen.info('tests', 'silent first run...');
options.push('--silent');
this.initialized = true;
}
await runJest.run(options);
return this.name;
}