-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Cannot have multiple tests files in the same folder #227
Comments
+1 here, any hints on this ? Edit : FWIW, running |
Nope. I just wrote a script to loop through and run each individually.
|
Did anyone find any more information about this? I'm getting it when I enable one test file that was working just fine until now. If I comment out all the code and gradually uncomment each line -- the error doesn't come back... but randomly when a test fails whilst developing later - the error will come back again and I need to go through this pointless comment/uncomment process to make it go away. |
When I run with sudo I don't have any issues
|
Sudo really shouldn't be required for running tests |
agreed, but just saying that it works. On Tue, Mar 24, 2015 at 4:42 PM Thomas notifications@github.com wrote:
|
I find out that jest use the name in the |
+1 Node v0.10.36 |
I also encountered this issue, but I managed to fix it. It looks like jest was looking through my dist files and got confused, because I fixed it by adding Here is the whole jest config in my
|
I had a similar problem on Ubuntu, found out that I installed jest-cli with sudo and as of that the My solution, It would be nice if jest-cli used a local .jest-haste-cache folder under the root folder of the project to avoid problems like these. |
this should work fine in jest 0.6.0. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I have
jest
installed globally and when I run the commandjest
it says that I amUsing Jest CLI v0.2.1
. Here is my test file:When I have a single file in my
___tests___
directory everything works fine, but if I add any other test file, then I get this errorI have tried deleting the files, changing the names and basically anything I can think of, but I have no idea what to do next. Any ideas?
The text was updated successfully, but these errors were encountered: