From 45b2550fec7acf92c5a1106adf6bfc26003a26c1 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Fri, 26 Oct 2018 15:06:18 +0200 Subject: [PATCH] browser/ember: Rethrow errors in testing mode see https://github.com/emberjs/ember-qunit/pull/304 --- packages/browser/src/integrations/pluggable/ember.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/browser/src/integrations/pluggable/ember.ts b/packages/browser/src/integrations/pluggable/ember.ts index 32c1256712fc..8eddd8408096 100644 --- a/packages/browser/src/integrations/pluggable/ember.ts +++ b/packages/browser/src/integrations/pluggable/ember.ts @@ -49,6 +49,8 @@ export class Ember implements Integration { if (typeof oldOnError === 'function') { oldOnError.call(this.Ember, error); + } else if (this.Ember.testing) { + throw error; } };