How to use the jest-circus/build/legacy-code-todo-rewrite/jestExpect function in jest-circus

To help you get started, we’ve selected a few jest-circus 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 facebook-atom / jest-electron-runner / packages / nuclide-e2e / src / rpc / NuclideE2ERPC.js View on Github external
async runTest(testData: IPCTestData): Promise {
    try {
      const testConsole = setupConsole();
      // $FlowFixMe
      setupExpect(testData.globalConfig);
      initialize({
        config: testData.config,
        globalConfig: testData.globalConfig,
        localRequire: require,
        parentProcess: process,
        testPath: testData.path,
      });

      const {setupTestFrameworkScriptFile} = testData.config;
      if (setupTestFrameworkScriptFile) {
        require(setupTestFrameworkScriptFile);
      }
      require(testData.path);
      const testResult = await runAndTransformResultsToJestFormat({
        config: testData.config,
        globalConfig: testData.globalConfig,

jest-circus

[type-definitions]: https://github.com/jestjs/jest/blob/main/packages/jest-types/src/Circus.ts

MIT
Latest version published 1 year ago

Package Health Score

82 / 100
Full package analysis

Similar packages