generated from fission-codes/project-template
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Complete the Jest DI with crypto (#234)
* Use ipfs-core instead of ipfs for a lighter dependency * Make yarn node --version be 15.x in nix-shell * Implement the complete crypto DI for node * Fix cbor encode/decode errors on node Switch to using Uint8Arrays instead of node Buffers. This is something the js-ipfs folks apparently have gone through, too: ipfs/js-ipfs#3220 * ESLint fixes * Fix eslint errors in index.ts * Revert "Fix cbor encode/decode errors on node" This reverts commit dbc3b3d. * Fix type * Test cbor en/decoding * Implement helper for totally in-memory ipfs * Add integration test & fix filesystem running in node * Remove logging * Use types added to the workaround repo * Fix CBOR decoding errors of encrypted data in node * Switch back to borc * Update jest & puppeteer & base58-universal * Add jest puppeteer types * Make it possible to run multiple ipfs in-memory If I didn't disable swarm addresses, then multiple instances of ipfs would request socket access and block each other. * Actually switch back from cborg to borc * Remove unneeded Buffer.from call * Make jest properly exit after all tests * wtfnode * Revert "wtfnode" This reverts commit 5cbfd03. * Force jest to exit, even if ipfs holds resources * Revert "Make jest properly exit after all tests" This reverts commit eab6bc8.
- Loading branch information
Showing
15 changed files
with
1,525 additions
and
2,404 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
declare module 'base58-universal/main.js' | ||
declare module 'borc' | ||
declare module 'base58-universal' { | ||
export function encode(input: Uint8Array, maxline?: number): string | ||
export function decode(input: string): Uint8Array | ||
} | ||
declare module 'ipld-dag-pb' | ||
declare module 'borc' |
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
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.