test: cli test solution for zksync-cli #123
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What π»
This is the long living development branch for zksync-cli automation
Why β
To prepare set of tests to verify zksync-cli in command line on different platforms
Evidence π·
Notes π
To run CLI tests for zksync-cli do the following:
Make preparation steps
1
and2
fromBuilding for production
, or justrun npm i && npm run build
Make sure you see your development build
0.0.0-development
usingnpx zksync-cli --version
. If not, install it in depends of your OS settings:npm i -g .
orsudo npm i -g .
If you have any other zksync-cli package installed globallynpm ls -g
, just remove it in advancenpm remove zksync-cli -g
.Make sure you have Docker on your system.
Rename
.env.example
to.env
in./test/src/
dir and add your wallet private key to this file. F.e.: It may looks likeE2E_TESTNET_PK=012345...abcdef
Run
npm run test