Skip to content

Adjust all tests of cloud-cap-samples to start test server inside describ #1215

@gregorwolf

Description

@gregorwolf

Hello CAP Documentation Team,

with #1068 the CAPire documentation on Testing with cds.test was adjusted in the section Running a CAP Server that the cds.test should be started inside a describe:

const cds = require('@sap/cds')
describe(()=>{
  const test = cds.test(__dirname+'/..')
})

Not all tests in https://github.com/SAP-samples/cloud-cap-samples/tree/main/test follow this best practice. I think this needs to be adjusted. For cap-sflight I've filed SAP-samples/cap-sflight#1177.

Best Regards
Gregor

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions