index.d.ts 1.3 KB

123456789101112131415161718192021222324252627
  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. import { Config } from '@jest/types';
  8. import { OnTestFailure as JestOnTestFailure, OnTestStart as JestOnTestStart, OnTestSuccess as JestOnTestSuccess, Test as JestTest, TestRunnerContext as JestTestRunnerContext, TestRunnerOptions as JestTestRunnerOptions, TestWatcher as JestTestWatcher } from './types';
  9. declare namespace TestRunner {
  10. type Test = JestTest;
  11. type OnTestFailure = JestOnTestFailure;
  12. type OnTestStart = JestOnTestStart;
  13. type OnTestSuccess = JestOnTestSuccess;
  14. type TestWatcher = JestTestWatcher;
  15. type TestRunnerContext = JestTestRunnerContext;
  16. type TestRunnerOptions = JestTestRunnerOptions;
  17. }
  18. declare class TestRunner {
  19. private _globalConfig;
  20. private _context;
  21. constructor(globalConfig: Config.GlobalConfig, context?: JestTestRunnerContext);
  22. runTests(tests: Array<JestTest>, watcher: JestTestWatcher, onStart: JestOnTestStart, onResult: JestOnTestSuccess, onFailure: JestOnTestFailure, options: JestTestRunnerOptions): Promise<void>;
  23. private _createInBandTestRun;
  24. private _createParallelTestRun;
  25. }
  26. export = TestRunner;
  27. //# sourceMappingURL=index.d.ts.map