Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to exlude test files #117

Open
andreas-wagner opened this issue Nov 12, 2018 · 1 comment
Open

Fail to exlude test files #117

andreas-wagner opened this issue Nov 12, 2018 · 1 comment

Comments

@andreas-wagner
Copy link

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?

@dylans
Copy link
Contributor

dylans commented Nov 27, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants