adopted-ember-addons / adopted-ember-addons/ember-cli-bugsnag
Cannot `import Bugsnag from 'bugsnag'` in test environment
- Ngôn ngữ chính
- JavaScript
- Star
- 20
- Fork
- 32
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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?
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.