index.d.ts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 { JestFakeTimers as FakeTimers } from '@jest/fake-timers';
  9. import { BufferedConsole, CustomConsole, NullConsole } from '@jest/console';
  10. import { formatTestResults } from '@jest/test-result';
  11. import createDirectory from './createDirectory';
  12. import ErrorWithStack from './ErrorWithStack';
  13. import getFailedSnapshotTests from './getFailedSnapshotTests';
  14. import installCommonGlobals from './installCommonGlobals';
  15. import interopRequireDefault from './interopRequireDefault';
  16. import deepCyclicCopy from './deepCyclicCopy';
  17. import convertDescriptorToString from './convertDescriptorToString';
  18. import * as specialChars from './specialChars';
  19. import replacePathSepForGlob from './replacePathSepForGlob';
  20. import * as preRunMessage from './preRunMessage';
  21. import pluralize from './pluralize';
  22. declare const _default: {
  23. BufferedConsole: typeof BufferedConsole;
  24. Console: typeof CustomConsole;
  25. ErrorWithStack: typeof ErrorWithStack;
  26. FakeTimers: typeof FakeTimers;
  27. NullConsole: typeof NullConsole;
  28. clearLine: (stream: NodeJS.WritableStream) => void;
  29. convertDescriptorToString: typeof convertDescriptorToString;
  30. createDirectory: typeof createDirectory;
  31. deepCyclicCopy: typeof deepCyclicCopy;
  32. formatTestResults: typeof formatTestResults;
  33. getCallsite: (level: number, sourceMaps?: Record<string, string> | null | undefined) => import("callsites").CallSite;
  34. getConsoleOutput: (root: string, verbose: boolean, buffer: import("@jest/console/build/types").LogEntry[]) => string;
  35. getFailedSnapshotTests: typeof getFailedSnapshotTests;
  36. installCommonGlobals: typeof installCommonGlobals;
  37. interopRequireDefault: typeof interopRequireDefault;
  38. isInteractive: boolean;
  39. isPromise: (candidate: unknown) => candidate is Promise<unknown>;
  40. pluralize: typeof pluralize;
  41. preRunMessage: typeof preRunMessage;
  42. replacePathSepForGlob: typeof replacePathSepForGlob;
  43. setGlobal: (globalToMutate: NodeJS.Global | Window, key: string, value: unknown) => void;
  44. specialChars: typeof specialChars;
  45. testPathPatternToRegExp: (testPathPattern: string) => RegExp;
  46. };
  47. export = _default;
  48. //# sourceMappingURL=index.d.ts.map