adopted-ember-addons / adopted-ember-addons/ember-cli-bugsnag

Cannot `import Bugsnag from 'bugsnag'` in test environment

Ouverte
#78 20 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
20
Forks
32
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

I'm using the `Bugsnag.notify` API and therfore have to

``` javascript
import Bugsnag from 'bugsnag';
```

However, this breaks my tests:
> Chrome 43.0 - Global error: Uncaught Error: Could not find module `bugsnag` imported from

Any suggestions here? I'm curious why `index.js` explicitly does not include bugsnag in `test` environments.

``` javascript
// index.js
this._includeBugsnag =
this.isDevelopingAddon() || process.env.EMBER_ENV !== 'test';
```

Any chance we could import just the `bugsnag/shim` in `test` environments?

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.