We provide 2 test suites to demonstrate the new features we have implemented in NEO•ONE.
To get started you can clone this repository and run:
npm install
This test makes use of our currently running 3.0.1 node at https://staging.neotracker.io/rpc.
Using a NEO account with some allocated test gas we can demonstrate transferring and receiving NEO/GAS from our local user-account provider.
to test simply run:
npx jest staging.test.ts
This test requires starting a local development network and then using the defined validator to form a transaction that populates our test wallets for development purposes.
As before when using the current build of our node you may have to set the following environment variables to start:
EDGE_USE_CORECLR=1
EDGE_APP_ROOT=node_modules/@neo-one/node-vm/lib/Debug/netcoreapp3.0
either export these to your local terminal or prepend them to the command below.
to test, open a second terminal and start a local development network with:
npx neo-one start network
this will start a local development network with data being stored at ./.neo-one/
.
Once running, you can test a transaction with:
npx jest local.test.ts