UpdateSnapshotsInteractive.d.ts 931 B

1234567891011121314151617181920
  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, AssertionLocation } from '@jest/test-result';
  8. import type { Config } from '@jest/types';
  9. import { BaseWatchPlugin, JestHookSubscriber, UsageData } from 'jest-watcher';
  10. declare class UpdateSnapshotInteractivePlugin extends BaseWatchPlugin {
  11. private _snapshotInteractiveMode;
  12. private _failedSnapshotTestAssertions;
  13. isInternal: true;
  14. getFailedSnapshotTestAssertions(testResults: AggregatedResult): Array<AssertionLocation>;
  15. apply(hooks: JestHookSubscriber): void;
  16. onKey(key: string): void;
  17. run(_globalConfig: Config.GlobalConfig, updateConfigAndRun: Function): Promise<void>;
  18. getUsageInfo(): UsageData | null;
  19. }
  20. export default UpdateSnapshotInteractivePlugin;