Skip to content

Commit 43781b3

Browse files
Akatuorochgeo
andauthored
disable ui5 plugin for tests (#1310)
Disables the cds ui5 plugin for mocha tests, removing the need for the forceful mocha exit introduced with #1286 . --------- Co-authored-by: Christian Georgi <chgeo@users.noreply.github.com>
1 parent 6fc4b7e commit 43781b3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"lint": "npx eslint .",
1313
"start": "cds-serve",
1414
"test": "jest",
15-
"test:mocha": "npx -y mocha --exit",
15+
"test:mocha": "npx -y mocha",
1616
"travel-processor": "cds-tsx watch --open sap.fe.cap.travel/index.html?sap-ui-xx-viewCache=false",
1717
"travel-analytics": "cds-tsx watch --open sap.fe.cap.travel_analytics/index.html?sap-ui-xx-viewCache=false"
1818
},

test/setup.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// for mocha
22
process.env.CDS_TYPESCRIPT = "true"
3+
// disables cds-ui5-plugin as otherwise it would not let mocha tests terminate
4+
process.env.CDS_PLUGIN_UI5_ACTIVE="false"
35

46
// for jest
57
module.exports = async () => {}

0 commit comments

Comments
 (0)