From 681f2a50b26d7954795dba5aec55bede4740e494 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Sat, 5 Sep 2020 01:14:25 -0400 Subject: [PATCH] Fixed test retry in browsers. --- packages/tests/karma-reporter.js | 4 +++- rollup-tests.config.js | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/tests/karma-reporter.js b/packages/tests/karma-reporter.js index eee36cfab..7fbfaab42 100644 --- a/packages/tests/karma-reporter.js +++ b/packages/tests/karma-reporter.js @@ -40,7 +40,9 @@ const KarmaReporter = function () { lastSuite = result.suite[0]; } - runner.emit('test'); + runner.emit('test', { + _currentRetry: 0 + }); if (result.skipped) { runner.emit('skipped'); diff --git a/rollup-tests.config.js b/rollup-tests.config.js index 3de0fdb01..f7470bfff 100644 --- a/rollup-tests.config.js +++ b/rollup-tests.config.js @@ -83,6 +83,7 @@ export default commandLineArgs => { format: format, name: "testing" }, + context: "window", treeshake: false, plugins: plugins };