How to use @jest/core - 1 common examples

To help you get started, we’ve selected a few @jest/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SoCreate / angular-playground / packages / angular-playground / cli / src / check-snapshots.ts View on Github external
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);
}

@jest/core

Delightful JavaScript Testing.

MIT
Latest version published 1 year ago

Package Health Score

82 / 100
Full package analysis

Popular @jest/core functions