jest-runner

  • Version 27.2.4
  • Published
  • 31.3 kB
  • 22 dependencies
  • MIT license

Install

npm i jest-runner
yarn add jest-runner
pnpm add jest-runner

Overview

Overview not available.

Index

Classes

class TestRunner

class TestRunner {}

    constructor

    constructor(globalConfig: any, context?: TestRunnerContext);

      property isSerial

      readonly isSerial?: boolean;

        method on

        on: <Name extends string | number | symbol>(
        eventName: Name,
        listener: (eventData: any) => void | Promise<void>
        ) => any;

          method runTests

          runTests: (
          tests: Array<Test>,
          watcher: TestWatcher,
          onStart: OnTestStart | undefined,
          onResult: OnTestSuccess | undefined,
          onFailure: OnTestFailure | undefined,
          options: TestRunnerOptions
          ) => Promise<void>;

            Interfaces

            interface TestWatcher

            interface TestWatcher
            extends Emittery<{
            change: WatcherState;
            }> {}

              property state

              state: WatcherState;

                method isInterrupted

                isInterrupted: () => boolean;

                  method isWatchMode

                  isWatchMode: () => boolean;

                    method setState

                    setState: (state: WatcherState) => void;

                      Type Aliases

                      type OnTestFailure

                      type OnTestFailure = (
                      test: Test,
                      serializableError: SerializableError
                      ) => Promise<void>;

                        type OnTestStart

                        type OnTestStart = (test: Test) => Promise<void>;

                          type OnTestSuccess

                          type OnTestSuccess = (test: Test, testResult: TestResult) => Promise<void>;

                            type TestRunnerContext

                            type TestRunnerContext = {
                            changedFiles?: Set<Config.Path>;
                            sourcesRelatedToTestsInChangedFiles?: Set<Config.Path>;
                            };

                              type TestRunnerOptions

                              type TestRunnerOptions = {
                              serial: boolean;
                              };

                                Package Files (2)

                                Dependencies (22)

                                Dev Dependencies (4)

                                Peer Dependencies (0)

                                No peer dependencies.

                                Badge

                                To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/jest-runner.

                                • Markdown
                                  [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/jest-runner)
                                • HTML
                                  <a href="https://www.jsdocs.io/package/jest-runner"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>