You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We stumbled over this issue when adding eslint-plugin-jest to our project.
As valid-expect has more useful check than just the "only 1 argument allowed" we would like to keep it, but have the issue that in several places we use jest-expect-message plugin for an additional message.
Currently we just manually disable the valid-expect rule in those places.
Is ist still planned to add this configurability? Would be awesome :)
Currently we only consider an expect valid if it has a single argument - otherwise we report that it has multiple arguments and thus is invalid.
While this is true for vanilla jest, it's possible to modify expect to be valid w/ more than one argument, such as via
jest-expect-message
.Hence, we should make this a configurable option.
The text was updated successfully, but these errors were encountered: