runJest.d.ts 1.3 KB

12345678910111213141516171819202122232425262728
  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. /// <reference types="node" />
  8. import { JestHookEmitter } from 'jest-watcher';
  9. import { Config } from '@jest/types';
  10. import { AggregatedResult } from '@jest/test-result';
  11. import { ChangedFiles } from 'jest-changed-files';
  12. import FailedTestsCache from './FailedTestsCache';
  13. import TestWatcher from './TestWatcher';
  14. import { Filter } from './types';
  15. declare const _default: ({ contexts, globalConfig, outputStream, testWatcher, jestHooks, startRun, changedFilesPromise, onComplete, failedTestsCache, filter, }: {
  16. globalConfig: Config.GlobalConfig;
  17. contexts: import("jest-runtime/build/types").Context[];
  18. outputStream: NodeJS.WritableStream;
  19. testWatcher: TestWatcher;
  20. jestHooks?: JestHookEmitter | undefined;
  21. startRun: (globalConfig: Config.GlobalConfig) => void;
  22. changedFilesPromise?: Promise<ChangedFiles> | undefined;
  23. onComplete: (testResults: AggregatedResult) => void;
  24. failedTestsCache?: FailedTestsCache | undefined;
  25. filter?: Filter | undefined;
  26. }) => Promise<void | null>;
  27. export default _default;
  28. //# sourceMappingURL=runJest.d.ts.map