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
I have a function with the signature expect404ToBeLoaded() which wasn't matching the wildcard expect* in assertFunctionNames like I thought it should. Looking at the source code it looks like the matching is only done on [a-Z]. Is there a reason for this, or would it make sense to update this to include [0-9]?
G-Rath
changed the title
assertFunctionNames - RegEx does not handle functions with numbers in the signature
[expect-expect] assertFunctionNames - RegEx does not handle functions with numbers in the signature
May 13, 2022
I have a function with the signature
expect404ToBeLoaded()
which wasn't matching the wildcardexpect*
inassertFunctionNames
like I thought it should. Looking at the source code it looks like the matching is only done on[a-Z]
. Is there a reason for this, or would it make sense to update this to include[0-9]
?eslint-plugin-jest/src/rules/expect-expect.ts
Lines 22 to 39 in f328c47
The text was updated successfully, but these errors were encountered: