You just need it on the global.  So I'd do:

```javascript
  GLOBAL.VTTCue = GLOBAL.VTTCue || function shim(start, end, text) {...};
```

This way your testing env can assume it exists on the global.