Do these steps on a different machine from where your js-ipfs node is currently running. For clarity, we'll refer to the location where you run the test as the "local" environment, and the location where the node that you want to test is running as the "remote" environment.
- Clone this repository on your local environment
git clone https://github.com/ceramicnetwork/peerlist
- Install dependencies using node 14
cd peerlist/test
# switch to using node 14. e.g. running `nvm use 14`
npm install
- Run the
customConnect
test against the node on your remote environment
JEST_CERAMIC_NETWORK= \ # set this to the ceramic network your js-ipfs node needs to connect to
JEST_PEER_MULTIADDR= \ # set this to the multiaddress of your remote js-ipfs node
./node_modules/.bin/jest --runInBand --detectOpenHandles --forceExit connectCustom