diff --git a/CHANGELOG.md b/CHANGELOG.md index fa52b19..6c4c989 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/index.js b/src/index.js new file mode 100644 index 0000000..0544fee --- /dev/null +++ b/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" +] +`);