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
So that I can modularize assertion functions but still get the expect-expect checking on it. Seems like this would be easy to do by duplicating what assertionFunctionNames is doing
G-Rath
changed the title
Allow additionalTestBlockFunctions to take a regex
[expect-expect] allow additionalTestBlockFunctions to take a regex
Dec 19, 2021
I would like to do something like this
So that I can modularize assertion functions but still get the
expect-expect
checking on it. Seems like this would be easy to do by duplicating what assertionFunctionNames is doingmatchesAssertFunctionName
https://github.com/jest-community/eslint-plugin-jest/blob/main/src/rules/expect-expect.ts#L25
and using it here:
https://github.com/jest-community/eslint-plugin-jest/blob/main/src/rules/expect-expect.ts#L118
The text was updated successfully, but these errors were encountered: