runTest.d.ts 633 B

123456789101112
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. */
  8. import type { TestFileEvent, TestResult } from '@jest/test-result';
  9. import type { Config } from '@jest/types';
  10. import Resolver from 'jest-resolve';
  11. import type { TestRunnerContext } from './types';
  12. export default function runTest(path: Config.Path, globalConfig: Config.GlobalConfig, config: Config.ProjectConfig, resolver: Resolver, context?: TestRunnerContext, sendMessageToJest?: TestFileEvent): Promise<TestResult>;