Setup for task in package.json

```
"test": "mocha -w test/helpers/browser.js src/**/spec.js",

```

Content of browser.js

```
require('babel-register')();

var jsdom = require('jsdom').jsdom;

var exposedProperties = ['window', 'navigator', 'document'];

global.document = jsdom('');
global.window = document.defaultView;
Object.keys(document.defaultView).forEach((property) => {
    if (typeof global[property] === 'undefined') {
        exposedProperties.push(property);
        global[property] = document.defaultView[property];
    }
});

global.navigator = {
    userAgent: 'node.js'
};

documentRef = document;

```

After starting test all the time it's on watch and it won't end after test how to solve that?