Skip to content

Adjust tests to start test server inside describe #1177

@gregorwolf

Description

@gregorwolf

Hello cap-sflight Team,

The CAPire documentation on Testing with cds.test describes 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+'/..')
})

This is currently not done in https://github.com/SAP-samples/cap-sflight/blob/main/test/odata.test.js.

Best Regards
Gregor

Metadata

Metadata

Assignees

No one assigned

    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