NotifyReporter.d.ts 827 B

12345678910111213141516171819
  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 type { AggregatedResult } from '@jest/test-result';
  8. import type { Config } from '@jest/types';
  9. import BaseReporter from './BaseReporter';
  10. import type { Context, TestSchedulerContext } from './types';
  11. export default class NotifyReporter extends BaseReporter {
  12. private _notifier;
  13. private _startRun;
  14. private _globalConfig;
  15. private _context;
  16. static readonly filename: string;
  17. constructor(globalConfig: Config.GlobalConfig, startRun: (globalConfig: Config.GlobalConfig) => unknown, context: TestSchedulerContext);
  18. onRunComplete(contexts: Set<Context>, result: AggregatedResult): void;
  19. }