-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: add test to verified fetch example #290
Conversation
Adds a test for JSON-codec data
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is great
// blockstore with test data | ||
defaultConfig.resolve ??= {} | ||
defaultConfig.resolve.alias ??= {} | ||
defaultConfig.resolve.alias['blockstore-core'] = resolve(process.cwd(), 'test/blockstore.js') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's neat!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, very cool!
* feat: add helia/verified-fetch browser example * feat(verified-fetch): improve UX (#286) * Update examples/helia-browser-react-verified-fetch/package.json Co-authored-by: Alex Potsides <alex@achingbrain.net> * refactor: clean up code and reduce deps * chore: rename folder * chore: add test * chore: fix linting * chore: add test to verified fetch example (#290) * chore: add test to verified fetch example Adds a test for JSON-codec data * chore: test verified fetch during ci * chore: add tests for other types * fix: improve rendering of cids on narrow viewports * fix: improve auto content detection * chore: fix tests * chore: upgrade verified-fetch * feat: add link to the repo * chore: bump verified fetch version * fix: add aborting functionality * fix: handle abort error * feat: add ability to fetch as dag-json * chore: update deps * chore: remove comment * chore: address feedback and simplify code * chore: reduce code duplication and add docs * feat: add links to api docs and source * fix: linting error --------- Co-authored-by: Daniel N <2color@users.noreply.github.com> Co-authored-by: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com> Co-authored-by: Alex Potsides <alex@achingbrain.net>
Adds a test for JSON, DAG-JSON and DAG-CBOR data, though DAG-CBOR doesn't seem to work currently - ipfs/helia#426