Skip to content

Commit

Permalink
fix: helpful error message when attempting to use the package main fi…
Browse files Browse the repository at this point in the history
…le (#29)
  • Loading branch information
jeysal authored and SimenB committed May 5, 2019
1 parent 09e1626 commit 716fe42
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -8,6 +8,7 @@
### Fixes

- Use fullName(to show ancestor titles) for test name pattern plugin ([#26](https://github.com/jest-community/jest-watch-typeahead/pull/26))
- Helpful error message when attempting to use the package main file ([#29](https://github.com/jest-community/jest-watch-typeahead/pull/29))

## 0.2.1

Expand Down
10 changes: 10 additions & 0 deletions src/index.js
@@ -0,0 +1,10 @@
// @flow

throw new Error(`
jest-watch-typeahead includes two watch plugins: The filename plugin and the testname plugin.
Please configure Jest as follows:
"watchPlugins": [
"jest-watch-typeahead/filename",
"jest-watch-typeahead/testname"
]
`);

0 comments on commit 716fe42

Please sign in to comment.