• Version 27.0.4
  • Published
  • 176 kB
  • 29 dependencies
  • MIT license


npm i @jest/core
yarn add @jest/core
pnpm add @jest/core


Delightful JavaScript Testing.



function createTestScheduler

createTestScheduler: (
globalConfig: any,
options: TestSchedulerOptions,
context: TestSchedulerContext
) => Promise<TestScheduler>;

    function getVersion

    getVersion: () => string;
    • Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.

      This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.

    function runCLI

    runCLI: (
    argv: any,
    projects: Array<Config.Path>
    ) => Promise<{ results: AggregatedResult; globalConfig: Config.GlobalConfig }>;


      class SearchSource

      class SearchSource {}


        constructor(context: any);

          method findMatchingTests

          findMatchingTests: (testPathPattern?: string) => SearchResult;

            method findRelatedSourcesFromTestsInChangedFiles

            findRelatedSourcesFromTestsInChangedFiles: (
            changedFilesInfo: any
            ) => Promise<Array<string>>;

              method findRelatedTests

              findRelatedTests: (
              allPaths: Set<Config.Path>,
              collectCoverage: boolean
              ) => Promise<SearchResult>;

                method findRelatedTestsFromPattern

                findRelatedTestsFromPattern: (
                paths: Array<Config.Path>,
                collectCoverage: boolean
                ) => Promise<SearchResult>;

                  method findTestRelatedToChangedFiles

                  findTestRelatedToChangedFiles: (
                  changedFilesInfo: any,
                  collectCoverage: boolean
                  ) => Promise<SearchResult>;

                    method findTestsByPaths

                    findTestsByPaths: (paths: Array<Config.Path>) => SearchResult;

                      method getTestPaths

                      getTestPaths: (
                      globalConfig: any,
                      changedFiles: ChangedFiles | undefined,
                      filter?: Filter
                      ) => Promise<SearchResult>;

                        method isTestFilePath

                        isTestFilePath: (path: any) => boolean;

                          class TestWatcher

                          class TestWatcher extends emittery<{
                          change: State;
                          }> {}


                            constructor({ isWatchMode }: { isWatchMode: boolean });

                              property state

                              state: State;

                                method isInterrupted

                                isInterrupted: () => boolean;

                                  method isWatchMode

                                  isWatchMode: () => boolean;

                                    method setState

                                    setState: (state: State) => Promise<void>;

                                      Package Files (6)

                                      Dependencies (29)

                                      Dev Dependencies (7)

                                      Peer Dependencies (1)


                                      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/core.

                                      • Markdown
                                      • HTML
                                        <a href="https://www.jsdocs.io/package/@jest/core"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>