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

Jest __test__ directory issues #398

Open
martin-bb opened this issue Mar 7, 2017 · 1 comment
Open

Jest __test__ directory issues #398

martin-bb opened this issue Mar 7, 2017 · 1 comment

Comments

@martin-bb
Copy link

I'm not too sure how to classify this, but noticed that there may be problems with Jest setups who also want to keep private functions/files &c. out of the documentation. It's more of a fix for future people or possible thing to look for if accepting "jest" as a type.

The "problem" is that one of the ways that Jest looks for tests by default is in the directory __tests__. I couldn't see it documented anywhere, but a solution (other than creating a test of type "jest" or checking if the kind is testFile) is to disable autoPrivate, so the directory isn't set to private and then removed here.

Maybe this will be a dead issue, but I thought someone else having problems with Jest showing in their documents and using the structure of __tests__ would find find this useful and it would save them time investigating the issue.

@korczis
Copy link

korczis commented Feb 28, 2018

Any 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