Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then(async (config?: any) => {
if (config) {
if (config.type === 'local') {
require('./tests/emulator');
} else {
await jest.run([
'--verbose',
'--config',
resolvePath(__dirname, '../jest.config.js'),
'--rootDir',
resolvePath(__dirname, '../')
]);
}
}
})
.catch(() => { /* The promise never rejects */ });