Clean up test accounts like alice and bob at the end of the test run. This involved adding an AccountManager and subclass TestnetManager to keep track of accounts created during the test run. AccountManager also handles all things related to accounts and signing. In the future we may want to use two separate classes for these two needs (spawning/cleaning accounts; handling transactions & signing for a given account).
Restructure the project with the goal of removing circular dependencies. This includes adding new interface NearAccount.
Tests can now skip beforeAll, since the runner instance will wait for the function passed to create to complete before executing run calls. That is, beforeAll is no longer required, and this can be defined at the top level of tests:
Use jest.concurrent to make tests actually-concurrent (they weren't before) which speeds up test runs significantly and ensures that all near-runner works as designed
Use near-units to wrap account balances and clean up assertions about account balances. Example:
Cache root testnet accounts.
Clean up test accounts like
alice
andbob
at the end of the test run. This involved adding anAccountManager
and subclassTestnetManager
to keep track of accounts created during the test run.AccountManager
also handles all things related to accounts and signing. In the future we may want to use two separate classes for these two needs (spawning/cleaning accounts; handling transactions & signing for a given account).Restructure the project with the goal of removing circular dependencies. This includes adding new
interface NearAccount
.Tests can now skip
beforeAll
, since therunner
instance will wait for the function passed tocreate
to complete before executingrun
calls. That is,beforeAll
is no longer required, and this can be defined at the top level of tests:Use
jest.concurrent
to make tests actually-concurrent (they weren't before) which speeds up test runs significantly and ensures that all near-runner works as designedUse near-units to wrap account balances and clean up assertions about account balances. Example:
Add new JSON RPC wrapper