• Version 27.4.7
  • Published
  • 174 kB
  • 28 dependencies
  • MIT license


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


Delightful JavaScript Testing.



function createTestScheduler

createTestScheduler: (
globalConfig: Config.GlobalConfig,
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: Config.Argv,
    projects: Array<Config.Path>
    ) => Promise<{ results: AggregatedResult; globalConfig: Config.GlobalConfig }>;


      class SearchSource

      class SearchSource {}


        constructor(context: Context);

          method filterPathsWin32

          filterPathsWin32: (paths: Array<string>) => Array<string>;

            method findMatchingTests

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

              method findRelatedSourcesFromTestsInChangedFiles

              findRelatedSourcesFromTestsInChangedFiles: (
              changedFilesInfo: ChangedFiles
              ) => 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: ChangedFiles,
                    collectCoverage: boolean
                    ) => Promise<SearchResult>;

                      method findTestsByPaths

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

                        method getTestPaths

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

                          method isTestFilePath

                          isTestFilePath: (path: Config.Path) => 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 (28)

                                        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>