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

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

Đang mở
#78 20 bình luận 0 reaction 0 người được giao Xem trên GitHub
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á.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.