Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix test and change snapshot text for custom prompts
  • Loading branch information
rogeliog committed Jul 3, 2018
commit b35e82008c743d79553e9b77e0914baf89d3f21e
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Watch Usage
› Press p to filter by a filename regex pattern.
› Press t to filter by a test name regex pattern.
› Press q to quit watch mode.
› Press k to configured prompt.
› Press k to filter with a custom prompt.
› Press Enter to trigger a test run.
",
]
Expand Down
5 changes: 4 additions & 1 deletion packages/jest-cli/src/__tests__/watch.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,10 @@ describe('Watch mode flows', () => {
Object.assign({}, globalConfig, {
rootDir: __dirname,
watchPlugins: [
{config: {key: 'k', prompt: 'configured prompt'}, path: pluginPath},
{
config: {key: 'k', prompt: 'filter with a custom prompt'},
path: pluginPath,
},
],
}),
contexts,
Expand Down
4 changes: 2 additions & 2 deletions packages/jest-config/src/__tests__/normalize.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1127,8 +1127,8 @@ describe('watchPlugins', () => {
);

expect(options.watchPlugins).toEqual([
'/node_modules/my-watch-plugin',
'/root/path/to/plugin',
{config: {}, path: '/node_modules/my-watch-plugin'},
{config: {}, path: '/root/path/to/plugin'},
]);
});
});
Expand Down