In my experience, you should deploy program before testing. Please run "anchor deploy" before "anchor test".
When deploying, you should set program id. I hope my experience help you. Happy coding!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey there, thanks for your guide
I seem to be having an issue running the tests from the hello world project. Whenever I run anchor test I get the following error:
Transaction simulation failed: Attempt to load a program that does not exist
anchor.workspace is an empty object when running the test.
Hoping you can help me solve this as I cannot find anything about this anywhere
This fixed the bug for me
How do you check the programID on the CLI?
Hello.
In my experience, you should deploy program before testing. Please run "anchor deploy" before "anchor test".
When deploying, you should set program id. I hope my experience help you. Happy coding!