Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Feb 27, 2019
1 parent 0f12413 commit 6110e0b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/jest-core/src/watch.ts
Expand Up @@ -56,20 +56,20 @@ const INTERNAL_PLUGINS = [
QuitPlugin,
];

// TODO: Is it correct with constructor here?
const RESERVED_KEY_PLUGINS = new Map<
WatchPlugin,
{forbiddenOverwriteMessage: string; key?: string}
// TODO: Should be WatchPlugin
Function,
Pick<ReservedInfo, 'forbiddenOverwriteMessage' | 'key'>
>([
[
UpdateSnapshotsPlugin.constructor,
UpdateSnapshotsPlugin,
{forbiddenOverwriteMessage: 'updating snapshots', key: 'u'},
],
[
UpdateSnapshotsInteractivePlugin.constructor,
UpdateSnapshotsInteractivePlugin,
{forbiddenOverwriteMessage: 'updating snapshots interactively', key: 'i'},
],
[QuitPlugin.constructor, {forbiddenOverwriteMessage: 'quitting watch mode'}],
[QuitPlugin, {forbiddenOverwriteMessage: 'quitting watch mode'}],
]);

export default function watch(
Expand Down

0 comments on commit 6110e0b

Please sign in to comment.