Testcases

This commit is contained in:
2026-07-29 11:19:31 +00:00
parent 88d709cb16
commit b10545643d
5 changed files with 706 additions and 7 deletions

View File

@@ -5,12 +5,16 @@
"@sap/cds": "^9"
},
"devDependencies": {
"@cap-js/cds-test": "^1.0.1",
"@cap-js/sqlite": "^2.4",
"cds-plugin-ui5": "^0.17.0"
"cds-plugin-ui5": "^0.17.0",
"chai": "^6.2.2",
"mocha": "^11.7.6"
},
"scripts": {
"start": "cds-serve",
"watch-incidents": "cds watch --open ns.incidents/index.html?sap-ui-xx-viewCache=false --livereload false"
"watch-incidents": "cds watch --open ns.incidents/index.html?sap-ui-xx-viewCache=false --livereload false",
"test": "npx jest tests/test.js"
},
"cds": {
"requires": {
@@ -19,10 +23,15 @@
"kind": "mocked",
"users": {
"alice": {
"roles": ["support"]
"roles": [
"support"
]
},
"bob": {
"roles": ["support"]
"roles": [
"support",
"admin"
]
}
}
}
@@ -36,4 +45,4 @@
"sapux": [
"app/incidents"
]
}
}