Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/michalzalecki/cypress-web3-testing

Integration tests and mocking web3 apps
https://github.com/michalzalecki/cypress-web3-testing

Last synced: 2 months ago
JSON representation

Integration tests and mocking web3 apps

Awesome Lists containing this project

README

        

# cypress-web3-testing

This repository shows how simple DApp can be tested with Cypress. [Learn more](https://michalzalecki.com/integration-tests-and-mocking-web3-apps/).

## Setup

In 1st tab

npm i -g truffle ganache-cli parcel-bundler
ganache-cli -m "stamp polar cup smart ill agree human episode reform trigger text forget" -i 5777

In 2nd tab

cd contracts && truffle migrate --network ganache
cd dapp && npm i && parcel serve index.html

Run tests

cd dapp && npx cypress open