# E2E Testing

We can do the end-to-end testing for the latest DcommJS by setting up a local Dcomm network and running the `e2e_tests` in the root directory.

## Setup Local Dcomm Network

For testing end to end, you need to have a local network running. This can easily be achieved by using Dcomm Network Runner. You can follow the steps [here](https://docs.dcm.network/quickstart/network-runner) to setup a local network.

## Setup Environment Variables

You need to add IP and PORT of the node running the local network to your environment variables. Run the following command according to your setup:

```bash
DCOMMGO_IP=0.0.0.0
DCOMMGO_PORT=9650
```

## Run Tests

The following command will start the E2E testing

```
yarn test -i --roots e2e_tests
```
