-
-
Notifications
You must be signed in to change notification settings - Fork 741
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
Tests using jest sometimes fails for generated app on windows platform #1667
Comments
I ran some test on Ubuntu and I noticed the same kind of random problems. |
@daffl I think this issue should be re-open for more investigation. I tried
I would love to add useful additional information, but I will need some clues about what you want to debug. 👍 |
I also see a similar issue when using Jest with GitHub Action runners. The tests run fine on my local machine with macOS. I suspect the tests need to be updated to either (a) use an in-memory database, or (b) use a dynamic filename for each test. I am new to the Fathers ecosystem, so have no idea how to implement either. At a minimum, it would be great if the docs were updated to better reflect the limited support for Jest. I remember there being a tutorial, or the wizard that suggested choosing Mocha; however, I have more experience with Jest, so I went with it. I would have made a different decision if the docs better explained the tradeoffs. Update 1: I followed the steps at https://burnedikt.com/feathers-and-nedb-for-testing/ to update my tests to use the in-memory database. Update 2: Feathers CLI assumes the |
Steps to reproduce
Tell us what broke. The more detailed the better.
After generating and app and not changing anything, the jest test suite is not working all the time on windows.
If you can, please create a simple example that reproduces the issue and link to a gist, jsbin, repo, etc. This makes it much easier for us to debug and issues that have a reproducable example will get higher priority.
Expected behavior
All the tests pass all the time.
Actual behavior
I always get this:
And then sometimes the tests pass and sometimes not (! I tried with a 30000ms timeout, same result)
System configuration
NodeJS version:
v12.13.0
Operating System:
Windows 10
The text was updated successfully, but these errors were encountered: