# How to run ESM / .mts files in WebStorm

![](../images/webstorm.png)

Add the following to the node options for running mocha tests:

```
--loader ts-node/esm
```
