forked from Open-Attestation/oa-verify
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: new error handling (Open-Attestation#110)
* feat: new error handling (429, 500 etc) * feat: add new error types * chore: rm dist from gitignore * chore: add dist to gitignore * chore: add oa-verify dist as workaround - this will trigger GitGuardian * chore: cleanup and refactor * feat: handle missing response (429) * feat: refactor errors, using EthersError to check instead - using INVALID_ARGUMENT and SERVER_ERROR * chore: refactor error + error msg * fix: lint * feat: added Mock Svc Worker, test case coverage - installed msw (mock service worker) to mock http responses - added test case coverage for ethers SERVER_ERROR * fix: removed focused test .only * feat: test case coverage for HTTP response errors * feat: invalid argument/merkleRoot test coverage * fix: update test snapshot * chore: remove dist * fix: tests, moved msw to devDep * fix: eslint no-extraneous-dependencies * chore: dist * chore: remove dist
- Loading branch information
Showing
10 changed files
with
924 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.