near / near-workspaces-js

Write tests once, run them both on NEAR TestNet and a controlled NEAR Sandbox local environment
https://near.github.io/near-workspaces-js/
GNU General Public License v3.0
42 stars 21 forks source link

feat: Runner.open to start a one off execution #90

Closed willemneal closed 2 years ago

willemneal commented 2 years ago

Unlike the run method, this method is immediately executed and no cleanup is performed. Furthermore, it requires a rootAccount.

By default it uses testnet as the network to connect to and the home directory for the keystore.

chadoh commented 2 years ago

Thanks! This will make scripting on testnet and mainnet so easy.

By default it uses testnet as the network

I understand the point of this, but I do find it unexpected. I would rather keep the default sandbox, and make people do this:

Runner.open({network: 'testnet', rootAccount: 'me.testnet'}, async ({root}) => {
  // …
})
chadoh commented 2 years ago

Looks like there are conflicts that need to be resolved