# Running Scripts Before the Tests

Sometimes in your javascript/typescript projects you would like to run additional steps before the test runner runs. This could be used for setting up dependencies, transpiling code, or various other things to help your tests run more smoothly.

In order to support this, Testery provides the ability to define a section of your package.json that will run prior to the tests.

To do this, locate the `scripts` section of your `package.json` and add a string parameter for `testeryPreRunScript`. Say you wanted to install the `vim` system package on all of your runners. Your script would look something like this: `"testeryPreRunScript": "apt-get install -y vim".`

```
{
  "scripts":
    "testeryPreRunScript":"{{YOUR SCRIPTS GO HERE}}",
    ...
}
```
