How to use the create-jest-runner.fail function in create-jest-runner

To help you get started, we’ve selected a few create-jest-runner 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 binygal / jest-runner-flowtype / src / FlowtypeRunner.js View on Github external
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();

create-jest-runner

A simple way of creating a Jest runner

MIT
Latest version published 1 year ago

Package Health Score

75 / 100
Full package analysis

Similar packages