Skip to content

Commit 45b2550

Browse files
committed
browser/ember: Rethrow errors in testing mode
see emberjs/ember-qunit#304
1 parent f6bf0fd commit 45b2550

File tree

1 file changed

+2
-0
lines changed
  • packages/browser/src/integrations/pluggable

1 file changed

+2
-0
lines changed

packages/browser/src/integrations/pluggable/ember.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ export class Ember implements Integration {
4949

5050
if (typeof oldOnError === 'function') {
5151
oldOnError.call(this.Ember, error);
52+
} else if (this.Ember.testing) {
53+
throw error;
5254
}
5355
};
5456

0 commit comments

Comments
 (0)