-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Work around os.cpus() returning an empty array on unsupported platforms #3095
Conversation
Here's the Node.js issue describing the |
On what platform are you running into this, and with which version of Node.js? |
I'm using Node.js 18.7.0 and running it on Android |
Okay now I am curious, why run AVA on Android? |
Well, as I wanted to try web development on the go and I don't have a laptop, I decided to do it on my Android tablet, using Termux and Neovim. Most utilities just work and only some refuse to work because of bugs and poor (if any) support for Android. |
Fair enough! |
Thanks! |
There is a bug in Node's built-in
os
module, where, in some cases, getting theos.cpus()
value will return an empty Array. As a result, the testing process won't even start. To accommodate for this issue, I suggest adding a check foros.cpus()
value.