In-depth documentation on this SDK is available at uniswap.org.
To run the tests, follow these steps. You must have at least node v10 and yarn installed.
First clone the repository:
git clone https://github.com/Uniswap/uniswap-sdk.git
Move into the uniswap-sdk working directory
You should see output like the following:
yarn run v1.22.4$ tsdx testPASS test/constants.test.tsPASS test/pair.test.tsPASS test/fraction.test.tsPASS test/miscellaneous.test.tsPASS test/entities.test.tsPASS test/trade.test.tsTest Suites: 1 skipped, 6 passed, 6 of 7 totalTests: 3 skipped, 82 passed, 85 totalSnapshots: 0 totalTime: 5.091sRan all test suites.✨ Done in 6.61s.