From defb62d23283de3d8b56324ba3366fb5783f03fa Mon Sep 17 00:00:00 2001 From: Christian Georgi Date: Mon, 15 Aug 2022 14:54:35 +0200 Subject: [PATCH 1/3] Execute mocha tests as well --- .github/workflows/node.js.yml | 3 ++- package.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index a1d86fb8..b69dc9cf 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -26,4 +26,5 @@ jobs: node-version: ${{ matrix.node-version }} - run: npm i -g npm@8 - run: npm ci - - run: npm test + - run: npm run test + - run: npm run test:mocha diff --git a/package.json b/package.json index 88bb15bc..fa7d8c6f 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "jest": "npx jest", "start": "cds watch fiori", "test": "npm run jest -- --silent", + "test:mocha": "npx mocha --timeout 10000", "test:hello": "cd hello && npm test" }, "jest": { From 8eb13d1e450f71cef0ac3427b67dd1d477f17a93 Mon Sep 17 00:00:00 2001 From: Christian Georgi Date: Mon, 15 Aug 2022 14:56:59 +0200 Subject: [PATCH 2/3] Increase timeout --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fa7d8c6f..61cd6681 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "jest": "npx jest", "start": "cds watch fiori", "test": "npm run jest -- --silent", - "test:mocha": "npx mocha --timeout 10000", + "test:mocha": "npx mocha --timeout 20000", "test:hello": "cd hello && npm test" }, "jest": { From a486b1ee195289f8fcbf805faa8b8c5a83da0ce1 Mon Sep 17 00:00:00 2001 From: Christian Georgi Date: Mon, 15 Aug 2022 15:42:05 +0200 Subject: [PATCH 3/3] Enforce parallel and recursive --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 61cd6681..350ad817 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "jest": "npx jest", "start": "cds watch fiori", "test": "npm run jest -- --silent", - "test:mocha": "npx mocha --timeout 20000", + "test:mocha": "npx mocha --parallel --recursive --timeout 20000", "test:hello": "cd hello && npm test" }, "jest": {