mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-04 13:05:49 +00:00
Migrate unit tests to TypeScript (#12)
* Add type information for utils * Enable "strictNullChecks" and "noImplicitAny" * Replace mocha with jest * Fix #11 * Refactor and add tests for 100% code coverage * Mention --coverage option in README * Travis: remove node v9 and add node v10 and v12 * Improvements per review by @keefertaylor Node.js v6 throws "Invalid hex string" if the hex string has an odd number of characters (two hex characters per byte means the string should have an even length). This changed in later versions of Node.js.
This commit is contained in:
8
packages/ripple-address-codec/jest.config.js
Normal file
8
packages/ripple-address-codec/jest.config.js
Normal file
@@ -0,0 +1,8 @@
|
||||
module.exports = {
|
||||
"roots": [
|
||||
"<rootDir>/src"
|
||||
],
|
||||
"transform": {
|
||||
"^.+\\.tsx?$": "ts-jest"
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user