This repository was archived by the owner on Aug 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: make ipfs and http client peer dependencies (#90)
By depending on a certain version of ipfs and the ipfs http client it means we can't run all the tests on other versions of ipfs/the http client as the `require`s resolve to the wrong version. This PR makes them peer dependencies to allow the tester/testing environment to specify which versions of modules we want to test.
- Loading branch information
1 parent
5c9c60f
commit 73f2440
Showing
4 changed files
with
34 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,16 @@ This repository will be used for interop tests. Please jump into the issues if y | |
> git clone [email protected]:ipfs/interop.git | ||
> cd interop | ||
> npm install | ||
# install a version of js-ipfs to test with | ||
> npm install ipfs | ||
# optionally install a version of js-ipfs-http-client to test with | ||
# (otherwise the one ipfs depends on will be used) | ||
> npm install ipfs-http-client | ||
# install a version of go-ipfs to test with | ||
> npm install go-ipfs-dep | ||
``` | ||
|
||
### Run the tests | ||
|
@@ -29,15 +39,8 @@ This repository will be used for interop tests. Please jump into the issues if y | |
### Test with a non yet released version of js-ipfs | ||
|
||
``` | ||
# Do the steps in the install section, then | ||
> cd .. | ||
> git clone [email protected]:ipfs/js-ipfs.git | ||
> cd js-ipfs | ||
> npm install | ||
> npm link | ||
> cd ../interop | ||
> npm link ipfs | ||
> npm test | ||
# Do the steps in the install section but skip installing ipfs, then | ||
> IPFS_JS_EXEC=/path/to/js-ipfs/src/cli/bin.js IPFS_JS_MODULE=/path/to/js-ipfs npm test | ||
``` | ||
|
||
### Test with a non yet released version of go-ipfs | ||
|
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