@jest/core

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

Install

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

Overview

Delightful JavaScript Testing.

Index

Functions

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 }>;

      Classes

      class SearchSource

      class SearchSource {}

        constructor

        constructor(context: any);

          method filterPathsWin32

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

            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

                              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)

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

                                        • Markdown
                                          [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@jest/core)
                                        • 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>