mirror of
https://github.com/alexgo-io/alex-sdk.git
synced 2026-04-30 18:52:33 +08:00
Tests/sdk features stage 2 (#11)
* tests: enhance tests for existing functions * tests: add test cases for existing functions * tests: add test cases for three new functions * tests: Introduce mock for getFeeRate function * tests: implement workaround for Jest BigInt assertion issue * tests: wip test cases getRoute, getAmountTo, runSwap * tests: mocked functions runSwap, getLatestPrices * temp commit * tests: mocked functions getBalances, fetchSwappableCurrency * tests: add additional tests for error scenarios * tests: add more coverage to runSwap SDK method * temp commit * temp commit * sync merge * code linted + documentation update * tests: SDK getWayPoints method * tests: add lint fix command * tests: add getFeeRate with custom route * test: add external error tests * fix: minor changes * conflicts resolved --------- Co-authored-by: ignacio.pena@coinfabrik.com <ignacio.pena@coinfabrik.com> Co-authored-by: simsbluebox <simsbluebox@gmail.com> Co-authored-by: david weil <david.weil@endlesstruction.com.ar>
This commit is contained in:
@@ -15,7 +15,9 @@
|
||||
"build": "dts build",
|
||||
"prepare": "pnpm run build",
|
||||
"test": "dts test",
|
||||
"test:coverage": "dts test --coverage",
|
||||
"lint": "dts lint",
|
||||
"lint-fix": "dts lint --fix",
|
||||
"size": "size-limit",
|
||||
"gen:contract": "rm -rf src/generated/smartContract/* && tsx ./scripts/gen-contract.ts && prettier --write 'src/generated/smartContract'",
|
||||
"analyze": "size-limit --why",
|
||||
@@ -62,6 +64,7 @@
|
||||
"ajv": "^8.16.0",
|
||||
"dts-cli": "^2.0.5",
|
||||
"esm": "^3.2.25",
|
||||
"fetch-mock": "^10.0.7",
|
||||
"husky": "^8.0.3",
|
||||
"prettier": "^2.8.4",
|
||||
"size-limit": "^8.2.4",
|
||||
|
||||
Reference in New Issue
Block a user