Closed kahnclusions closed 2 years ago
Hi @kahnclusions ,
Thanks for this issue report, that's an interesting bug. Let me see if I can find some time to fix this.
Best regards, David
Hi @kahnclusions ,
Thanks again for providing this nice error report.
I've fixed the issue, now regular expressions in filenames should work. https://github.com/David-Kunz/jester/commit/3f02fb4c43d4ce898dbfa74482cf73b7320dd262
Would you mind testing it with the newest Jester version?
Thanks a lot and best regards, David
Hi 👋 As the title says, can't find tests when the filename has regex symbols in it. For example, one of my projects has a filename like
[productType].test.tsx
which is a perfectly valid filename in a Node/TS project.I can run this test from command line:
But when running from Jester, it can't find the test likely because it interpreted
[productType]
as a regex character class, instead of just a plain string. No escaping is done before passing the filename to Jest.