# Test Environment

{% hint style="info" %}
Our test environment requires **Docker** and **Docker Compose** to run. Visit their [offical site](https://www.docker.com/get-started) to setup Docker up on your local machine.
{% endhint %}

We created a custom test environment to help you test your wrappers with a Tezos sandbox network. The source code for our test env is located under `./tezos/test-env` in the `polywrap-tezos` [repository](https://github.com/blockwatch-cc/polywrap-tezos/tree/main/protocol/tezos/test-env).

To use this for testing your wrapper, locally create an `.env` file with the following content

```
TEZOS_POLYWRAP_PORT=20000 
TEZOS_POLYWRAP_BLOCK_TIME=5 
TEZOS_POLYWRAP_PROTOCOL=jakarta
TEZOS_POLYWRAP_PLATFORM=linux/arm64
TEZOS_POLYWRAP_ROOT_PATH=/
```

Then run `yarn` to install dependencies and `yarn link` to create a symlink to the test env package.

Run a test with

```shell
npm run test:env:up
```
