-
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
Issues w/ anchor test #945
Comments
Are you using the npm package? Install 0.18.2, see #928 |
Ah, I installed
As done here. BTW -- my node version: What's the path to installing |
It looks like the version hasn't been bumped, so the same command without the
|
So, this gives me:
Looks like it still tried to install As a sanity check, tried the installation command here and it worked out fine. |
@farzaa can you try adding the |
Hey! @armaniferrante -- tried both
and
But each time it starts installing |
Yep that's fine, it is because the version hasn't been bumped in the repository yet. The installed version you end up with will have the fix. |
This worked out for me :)
As a side note -- I run and we're putting together a Solana + Anchor course. Should I tell people to use the install command above vs what's in the docs rn? Ty :). |
Got the same issue with @farzaa. I'm a newbie to anchor and just encounter the same issue with #925. I'm running this command
|
Run |
If you installed Anchor CLI from npm and create a project, you'll need to edit package.json Otherwise use the Rust CLI. |
hey there! My PC is running on Ubuntu 20.04 Edit1: there was also these on terminal:
Edit2[SOLVED]: for some unknown reasons my OpenSSL folder got removed/deleted and had to reinstall the dev package with |
|
|
Got |
modify [scripts]
test = "npx ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts" |
Using yarn works as well :) [scripts]
test = "yarn ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts" |
This fixed it for me |
In case of using
|
@YuheiNakasaka please read about |
|
worked for me after previously having faulty connection issues with node as well |
Even after using Anchor docs command for installing anchor i havent got the solution |
Hey there! On
anchor-cli 0.18.0
.Trying to run
anchor test
but when I do so, I get hit with:Failed to run test: ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts: No such file or directory (os error 2)
.So, I then did
npm install ts-mocha -g
to see if that would change anything.Running the test again, I get
node: --dns-result-order= is not allowed in NODE_OPTIONS
.Just running a boilerplate hello-world project from the docs via
anchor init helloworld
.I also tried doing
anchor init helloworld --javascript
, then doanchor test
, and still get:node: --dns-result-order= is not allowed in NODE_OPTIONS
.The text was updated successfully, but these errors were encountered: