From b1766518a893b7161c7d4d0a7586b959e3cf794f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Fri, 3 Apr 2020 09:43:34 +0200 Subject: [PATCH 1/2] Update dev dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - mocha to 7.x - nyc to 15.x Signed-off-by: Miroslav Bajtoš --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ce6abbde..6417345e 100644 --- a/package.json +++ b/package.json @@ -42,8 +42,8 @@ "eslint": "^6.7.2", "eslint-config-loopback": "^13.0.0", "loopback-connector-throwing": "file:./test/fixtures/loopback-connector-throwing", - "mocha": "^6.1.4", - "nyc": "^14.0.0", + "mocha": "^7.1.1", + "nyc": "^15.0.0", "should": "^13.2.3", "typescript": "^3.2.2" }, From 04336a60cff7f68187a982ff57b8e2b26838a294 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Fri, 3 Apr 2020 09:44:07 +0200 Subject: [PATCH 2/2] Add mocharc, remove mocha.opts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mocha has deprecated `mocha.opts` in favour of RC files. See also https://mochajs.org/#configuring-mocha-nodejs Signed-off-by: Miroslav Bajtoš --- .mocharc.yaml | 1 + test/mocha.opts | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 .mocharc.yaml delete mode 100644 test/mocha.opts diff --git a/.mocharc.yaml b/.mocharc.yaml new file mode 100644 index 00000000..d9d5680d --- /dev/null +++ b/.mocharc.yaml @@ -0,0 +1 @@ +reporter: dot diff --git a/test/mocha.opts b/test/mocha.opts deleted file mode 100644 index ff593c4d..00000000 --- a/test/mocha.opts +++ /dev/null @@ -1 +0,0 @@ ---reporter dot