You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tests in typescript as well as in rust, so i wanted to run both cargo test and yarn ts-mocha ... . So i tried to add both the commands in the scripts section under test tag in anchor.toml file like below.
[scripts]
test = "cargo test --lib -- --nocapture --include-ignored ::anchor; yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
I get the following error
Unrecognized option: 'p'
Both the commands when ran seperately work but when they are together seperated by either ; or &&, they dont seem to work.
When i tried to run the above command in terminal it worked, but i want to make it work with anchor test since it starts and closes the local validator automatically during the process.
The text was updated successfully, but these errors were encountered:
I have tests in typescript as well as in rust, so i wanted to run both
cargo test
andyarn ts-mocha ...
. So i tried to add both the commands in thescripts
section undertest
tag inanchor.toml
file like below.I get the following error
Both the commands when ran seperately work but when they are together seperated by either
;
or&&
, they dont seem to work.When i tried to run the above command in terminal it worked, but i want to make it work with
anchor test
since it starts and closes the local validator automatically during the process.The text was updated successfully, but these errors were encountered: