Skip to content

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

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/capire/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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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