-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
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
Unit tests on Node.js don't run locally (on Windows?) #23424
Comments
I can reproduce the issue on a Windows 10 laptop with node.js 17.4.0. The tests run as expected on macOS. |
Tip: if you run
you can see the actual error. If that doesn't work, try
The |
@marcofugaro Thanks for the advice but as written in the issue comment
|
@takahirox I was suggesting you remove |
I see this now:
|
Ah, my bad. It seems Windows file path problem?
|
Could you try calling
|
I get the same error as before. It seems other devs have seen this error before but could solve it by simply upgrading node. However, we already use equal or higher node versions. https://stackoverflow.com/questions/69665780/error-err-unsupported-esm-url-scheme-only-file-and-data-urls-are-supported-by |
Hmmm if upgrading node to latest doesn't solve it, this is an issue with the qunit code then: qunitjs/qunit#1667 |
I have the same issue in a M1 macOS Monterey machine. In order to fix that, I had to update QUnit at |
Shouldn't you automatically get |
@Mugen87 there is the package-lock.json, it's taking the three.js/test/package-lock.json Lines 1384 to 1386 in dfa937b
|
But what about this line? Line 16 in dfa937b
Or has the entry in the lock file a higher priority? |
I don't think the QUnit version is the problem. I did some tests to investigate it better. Before figured out the real problem, I just installed So, to fix the problem, I had to run This information is missing at The first one is the easy clean and the second one would be an automated solution but add more installing time as tradeoff. I can do both and send a PR, just let me know what option here fits better. |
It is written in https://github.com/mrdoob/three.js/blob/dev/test/README.md. I think it should be added to |
Yup, since the package-lock.json was introduced all package versions are locked so it's the same on any machine 😊 |
Describe the bug
The unit tests on Node.js don't run locally. They seem to run on CI server, so it might be a platform specific issue? (Refer to the Platform section below for my environment.)
To Reproduce
Steps to reproduce the behavior:
$ npm install
$ npm install --prefix test
$ npm run test-unit
Error log:
-f !-webonly
may be unrelated. Even if I remove that filter, the tests still don't run.Expected behavior
The tests run locally.
Platform:
The text was updated successfully, but these errors were encountered: