Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
headless: true,
handleSIGINT: false,
args: CHROME_ARGS,
});
await waitForNgServe(hostUrl, timeoutAttempts);
const execAsync = promisify(exec);
await execAsync('cd node_modules/angular-playground');
const argv = {
config: 'node_modules/angular-playground/dist/jest/jest-puppeteer.config.js',
updateSnapshot: !!config.updateSnapshots,
} as JestConfig.Argv;
const projectPath = resolvePath('.');
const projects = [projectPath];
const { results } = await runCLI(argv, projects);
await browser.close();
const exitCode = results.numFailedTests === 0 ? 0 : 1;
process.exit(exitCode);
}