Testing
yarn test
Runs the test files which goes through the entire workflow of PintSwap from creating the trade to completing the trade.
Available environment variables:
ETH=1
(Tests swapping of ETH which requires first wrapping ETH before making the swap)USDC=1
(Tests swapping USDC)ERC721=1
(Tests trading ERC721)
yarn test:integration
Runs the integration test which goes through the entire ERC20 token swap flow.
yarn test:unit
Runs unit tests on specific portions that occur with the pintswap SDK.
yarn test:localhost
Runs the test files against a local hardhat node. Note: run yarn node
first.
Available environment variables:
ETH=1
(Tests swapping of ETH which requires first wrapping ETH before making the swap)
Last updated