Has anyone been able to unit test [Highcharts](https://www.npmjs.com/package/highcharts) with [mocha](https://www.npmjs.com/package/mocha). Everything works great when we deploy our code, but it looks like it might not be possible to load the [highcharts](https://www.npmjs.com/package/highcharts) package out side of the browser.

Our code repro is Typescript, so we use ts-node to transpile to commonJS, and run tests with mocha and Domino to fake out the window/document, which we use for testing our other React components.

Specifically the side effects of calling import trigger the TypeError:

```
import * as _Highcharts from 'highcharts';

```

Which triggers this stack trace:

```
TypeError: Cannot set property 'hcTimezoneOffset' of undefined
    at A (<MyPath>/node_modules/highcharts/highcharts.js:113:299)
    at <MyPath>/node_modules/highcharts/highcharts.js:119:497
    at <MyPath>/node_modules/highcharts/highcharts.js:119:502
    at a (<MyPath>/node_modules/highcharts/highcharts.js:8:83)
    at Object.<anonymous> (<MyPath>/node_modules/highcharts/highcharts.js:8:109)
    at Module._compile (module.js:569:30)
    at Module._extensions..js (module.js:580:10)
    at Object.require.extensions.(anonymous function) [as .js] (<MyPath>/node_modules/ts-node/src/index.ts:373:14)

```

Which is referencing this code snippet.

```
    <MyPath>/node_modules/highcharts/highcharts.js:113
a.defaultOptions.global,k=q.moment;if(g.timezone){if(k)return function(a){return-k.tz(a,g.timezone).utcOffset()};a.error(25)}return g.useUTC&&g.getTimezoneOffset}function A(){var g=a.defaultOptions.global,u,h=g.useUTC,e=h?"getUTC":"get",n=h?"setUTC":"set";a.Date=u=g.Date||q.Date;u.hcTimezoneOffset=h&&g.timezoneOffset;u.hcGetTimezoneOffset=C();u.hcMakeTime=function(a,c,e,b,n,g){var d;h?(d=u.UTC.apply(0,arguments),d+=m(d)):d=(new u(a,c,k(e,1),k(b,0),k(n,0),k(g,0))).getTime();return d};F("Minutes Hours Day Date Month FullYear".split(" "),

```

The code is a bit hard to follow minified, but looks like the root cause is `a.defaultOptions.global` is `undefined` for whatever reason. I'm digging in further, but curious if anyone else has gotten a similar setup to work. Its likely that our test Domino window is confusing the [highcharts](https://www.npmjs.com/package/highcharts) code.