When running the precommit hook in @testing-library/jest-dom, I noticed this warning:
✖ kcd-scripts test --findRelatedTests:
● Validation Warning:
Unknown option "watchPlugins" with value ["/Users/trevor.burnham/code/jest-dom/node_modules/jest-watch-typeahead/build/file_name_plugin/plugin.js", "/Users/trevor.burnham/code/jest-dom/node_modules/jest-watch-typeahead/build/test_name_plugin/plugin.js"] was found.
This is probably a typing mistake. Fixing it will remove this message.
Configuration Documentation:
https://jestjs.io/docs/configuration
That configuration option is set here:
|
watchPlugins: [ |
|
require.resolve('jest-watch-typeahead/filename'), |
|
require.resolve('jest-watch-typeahead/testname'), |
|
], |
Honestly I'm puzzled by this warning. npx jest --version returns 29.7.0, and the docs for that version show watchPlugins as a valid configuration option: https://jestjs.io/docs/29.7/configuration#watchplugins-arraystring--string-object
Additionally, I only see the warning when kcd-scripts test runs in the precommit hook. If I run npx kcd-scripts test --run, there's no such warning.
When running the precommit hook in @testing-library/jest-dom, I noticed this warning:
That configuration option is set here:
kcd-scripts/src/config/jest.config.js
Lines 43 to 46 in 530b9ea
Honestly I'm puzzled by this warning.
npx jest --versionreturns29.7.0, and the docs for that version showwatchPluginsas a valid configuration option: https://jestjs.io/docs/29.7/configuration#watchplugins-arraystring--string-objectAdditionally, I only see the warning when
kcd-scripts testruns in the precommit hook. If I runnpx kcd-scripts test --run, there's no such warning.