PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/avalanche/documentation
Просмотр файла: e2e-tests.md
# E2E Testing
We can do the end-to-end testing for the latest AvalancheJS by setting up a local Avalanche network and running the `e2e_tests` in the root directory.
## Setup Local Avalanche Network
For testing end to end, you need to have a local network running. This can easily be achieved by using Avalanche Network Runner. You can follow the steps [here](https://docs.avax.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
AVALANCHEGO_IP=0.0.0.0
AVALANCHEGO_PORT=9650
```
## Run Tests
The following command will start the E2E testing
```
yarn test -i --roots e2e_tests
```
Выполнить команду
Для локальной разработки. Не используйте в интернете!