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 am having issues excluding any *.test.ts file that I use to test my stuff using jest.
These files live side by side with the actual implementation like this:
./src/my-stuff.ts
./src/my-stuff.test.ts
I only want the declaration file to be from the real implementation and not the test stuff.
I looked up jests pattern, which is **/?(*.)+(spec|test).ts?(x) and tried to use it with --exclude but it does not work.
Apparently minimatch has some kind of issue with the dot (or it is just me), jest is using micromatch with seems to just work.
Is it just me, is there another way to do this, or is that really broken?
The text was updated successfully, but these errors were encountered:
Thanks @andreas-wagner ... I've not run into this issue, but it's entirely possible of course. If you want to do a PR to swap minimatch for micromatch we could run that through our tests and make that update.
I am having issues excluding any
*.test.ts
file that I use to test my stuff using jest.These files live side by side with the actual implementation like this:
I only want the declaration file to be from the real implementation and not the test stuff.
I looked up jests pattern, which is
**/?(*.)+(spec|test).ts?(x)
and tried to use it with--exclude
but it does not work.Apparently minimatch has some kind of issue with the dot (or it is just me), jest is using micromatch with seems to just work.
Is it just me, is there another way to do this, or is that really broken?
The text was updated successfully, but these errors were encountered: