From 8d262e3b1bf360bae7d5adb119e1f9f9701fd0a8 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Sun, 6 Jun 2021 22:15:00 +0100 Subject: [PATCH] Update js-reporters to 2.1.0 Important changes: * Mocha 8 and later are now supported. Previously, it's pending tests were incorrectly reported as undefined or failing. * `QUnit.todo()` is now supported. Previously, these intentional failures were reported by browserstack-runner as failing tests. With js-reported 2.1 the runEnd report counts them as `todo` instead of as `failed`. The API that browserstack-runner depends on has not changed since 1.1.0. . Specifically, browserstack-runner captures the following data in lib/_patch/reporter.js, and proccesses it in lib/server.js under the "_progress" and "_report" handlers: * The `testEnd` event, reading: - `name` string, - `suiteName` string, - `status` string, - `errors` array. * The `runEnd` event, reading: - `status` string, - `testCounts` object with ints `total`, `passed`, `failed`, `skipped`, - `runtime` int. These still exist the same way in the latest release: Fixes https://github.com/browserstack/browserstack-runner/issues/248. Ref https://github.com/browserstack/browserstack-runner/issues/247. --- package-lock.json | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index ecd9f4e..c73c967 100644 --- a/package-lock.json +++ b/package-lock.json @@ -886,9 +886,9 @@ "optional": true }, "js-reporters": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/js-reporters/-/js-reporters-1.1.0.tgz", - "integrity": "sha1-yDwA/g1Mn2f5RLTt1fOylXSXzWI=" + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/js-reporters/-/js-reporters-2.1.0.tgz", + "integrity": "sha512-Q4GcEcPSb6ovhqp91claM3WPbSntQxbIn+3JiJgEXturys2ttWgs31VC60Yja+2unpNOH2A2qyjWFU2thCQ8sg==" }, "jsbn": { "version": "0.1.1", diff --git a/package.json b/package.json index 276f7f2..bbee5d3 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "browserstack": "1.3.0", "chalk": "0.4.0", "circular-json": "0.3.1", - "js-reporters": "1.1.0", + "js-reporters": "2.1.0", "mime": "1.6.0", "resolve": "1.1.7", "send": "0.16.2",