test: update address-codec tests to typescript (#2447)

- Switch files to typescript
- Add missing types in test files
- Change how the codec functions were imported. They now count towards the "% Funcs" calculation, increasing it from 75% to 100%.
- Lint test files
This commit is contained in:
Caleb Kniffen
2023-08-31 18:26:24 -05:00
parent 9676b218b7
commit 3d86318195
9 changed files with 105 additions and 67 deletions

View File

@@ -26,10 +26,10 @@
"prepublish": "tsc -b",
"prepublishOnly": "tslint -b ./ && jest",
"scripts": {
"build": "tsc -b",
"test": "jest --verbose false --silent=false ./src/*.test.js",
"build": "tsc --build tsconfig.build.json",
"test": "jest --verbose false --silent=false ./test/*.test.ts",
"lint": "eslint . --ext .ts",
"clean": "rm -rf ./dist && rm -rf tsconfig.tsbuildinfo"
"clean": "rm -rf ./dist && rm -rf ./coverage && rm -rf tsconfig.tsbuildinfo"
},
"prettier": "@xrplf/prettier-config",
"engines": {