BufferedConsole.d.ts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  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 { Console } from 'console';
  8. import { SourceMapRegistry } from '@jest/source-map';
  9. import { ConsoleBuffer, LogMessage, LogType } from './types';
  10. export default class BufferedConsole extends Console {
  11. private _buffer;
  12. private _counters;
  13. private _timers;
  14. private _groupDepth;
  15. private _getSourceMaps;
  16. constructor(getSourceMaps: () => SourceMapRegistry | null | undefined);
  17. static write(buffer: ConsoleBuffer, type: LogType, message: LogMessage, level?: number | null, sourceMaps?: SourceMapRegistry | null): import("./types").LogEntry[];
  18. private _log;
  19. assert(value: any, message?: string | Error): void;
  20. count(label?: string): void;
  21. countReset(label?: string): void;
  22. debug(firstArg: any, ...rest: Array<any>): void;
  23. dir(firstArg: any, ...rest: Array<any>): void;
  24. dirxml(firstArg: any, ...rest: Array<any>): void;
  25. error(firstArg: any, ...rest: Array<any>): void;
  26. group(title?: string, ...rest: Array<any>): void;
  27. groupCollapsed(title?: string, ...rest: Array<any>): void;
  28. groupEnd(): void;
  29. info(firstArg: any, ...rest: Array<any>): void;
  30. log(firstArg: any, ...rest: Array<any>): void;
  31. time(label?: string): void;
  32. timeEnd(label?: string): void;
  33. warn(firstArg: any, ...rest: Array<any>): void;
  34. getBuffer(): import("./types").LogEntry[] | undefined;
  35. }
  36. //# sourceMappingURL=BufferedConsole.d.ts.map