File tree Expand file tree Collapse file tree 5 files changed +16
-16
lines changed
Expand file tree Collapse file tree 5 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ For testing if two versions works together do the following in the e2e folder:
1010
1111``` bash
1212rm -r node_modules/ && yarn install --ignore-engines //contains state of pm2
13- rm sqlite.db && yarn deploy && yarn stop && yarn start //recreate DB
13+ rm sqlite.db && yarn deploy && yarn pretest:e2e && yarn posttest:e2e //recreate DB
1414//execute your tests
1515```
1616
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ const cds = require('@sap/cds');
33const express = require ( 'express' ) ;
44
55module . exports = {
6- createCapApp ( ) {
6+ async createCapApp ( ) {
77 const app = express ( ) ;
8- cds
8+ await cds
99 . serve ( 'all' )
1010 . to ( 'odata' ) // Use odata format (default is 'fiori')
1111 . in ( app ) ;
Original file line number Diff line number Diff line change 1313 "stop:service-server" : " pm2 stop server.js" ,
1414 "start:proxy-server" : " pm2 start test/proxy/proxy-server.js || pm2 restart test/proxy/proxy-server.js" ,
1515 "stop:proxy-server" : " pm2 stop test/proxy/proxy-server.js" ,
16- "deploy" : " cds deploy --to sqlite --no-save " ,
16+ "deploy" : " cds deploy --to sqlite" ,
1717 "test" : " yarn test:e2e" ,
1818 "test:e2e" : " yarn node --experimental-vm-modules ../../node_modules/jest/bin/jest.js" ,
1919 "lint" : " eslint --ext .ts . && prettier . --config ../../.prettierrc --ignore-path ../../.prettierignore -c" ,
3131 "@sap-cloud-sdk/test-services-e2e" : " ^4.2.0" ,
3232 "@sap-cloud-sdk/test-services-openapi" : " ^4.2.0" ,
3333 "@sap-cloud-sdk/util" : " ^4.2.0" ,
34- "@sap/cds" : " ^9.2 .1" ,
34+ "@sap/cds" : " ^9.6 .1" ,
3535 "@sap/cds-dk" : " 9.6.0" ,
3636 "axios" : " ^1.13.2" ,
3737 "execa" : " ^5.0.0" ,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const { createOpenApiApp } = require('./openapi');
55
66async function startServer ( ) {
77 const app = express ( ) ;
8- const odataApp = createCapApp ( ) ;
8+ const odataApp = await createCapApp ( ) ;
99 const restApp = await createOpenApiApp ( ) ;
1010
1111 app . use ( '/odata' , odataApp ) ;
Original file line number Diff line number Diff line change 14231423 resolved "https://registry.npmjs.org/@rtsao/scc/-/scc-1.1.0.tgz#927dd2fae9bc3361403ac2c7a00c32ddce9ad7e8"
14241424 integrity sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==
14251425
1426- " @sap/cds-compiler@^6 " :
1427- version "6.1 .0"
1428- resolved "https://registry.npmjs.org/@sap/cds-compiler/-/cds-compiler-6.1 .0.tgz#6e010591111e3c45b39b8035ae0e360532ecb6f5 "
1429- integrity sha512-s71fsxDZKqHn2xvoqoNst54K/BkBzCpiU+8xc0t3nMDXmsLzSC3VfygZGwGAZD8fkxUnXh8oL2XLHWKWcvcdNg ==
1426+ " @sap/cds-compiler@^6.3 " :
1427+ version "6.6 .0"
1428+ resolved "https://registry.npmjs.org/@sap/cds-compiler/-/cds-compiler-6.6 .0.tgz#84cc9ec3ef2434f249a2b504da903a8392ad3b14 "
1429+ integrity sha512-cttVQhuzobLsnaGjmCz6gOXdUdHRawTbUK8UsUPnOIOboAOJRvLbrX4RF/iY6VxewpupDcx+FhfDCbAupO3EwQ ==
14301430
1431143114321432 version "9.6.0"
14621462 dependencies :
14631463 " @sap/hdi-deploy" " ^5"
14641464
1465- " @sap/cds@>=8.3" , "@sap/cds@^9.2 .1":
1466- version "9.2 .1"
1467- resolved "https://registry.npmjs.org/@sap/cds/-/cds-9.2 .1.tgz#c3d830663394f2d0226486e33389c87636b864f4 "
1468- integrity sha512-0zjjZGlBvcJMyVj48hTs6Q22/w9hNnJR6O88rGoEj4R87uaP4uM5gFLf3PDnPDUwkAeveVHgJRnWPqDGqIMgvA ==
1465+ " @sap/cds@>=8.3" , "@sap/cds@^9.6 .1":
1466+ version "9.6 .1"
1467+ resolved "https://registry.npmjs.org/@sap/cds/-/cds-9.6 .1.tgz#670de33b5c383f632591de828b3e45d350346965 "
1468+ integrity sha512-Bx6asOBhYXBE+jB6FtmyHmAjoPi11MYb/v/AYpnp0jqL/+kAXXWo6YOxJHqpx1k5Um5FS1r6gM/5tVAo/ta7bw ==
14691469 dependencies :
1470- " @sap/cds-compiler" " ^6"
1470+ " @sap/cds-compiler" " ^6.3 "
14711471 " @sap/cds-fiori" " ^2"
1472- js-yaml "^4.1.0 "
1472+ js-yaml "^4.1.1 "
14731473
14741474" @sap/hdi-deploy@^5 " :
14751475 version "5.4.2"
You can’t perform that action at this time.
0 commit comments