I am trying to execute this test...
const cds = require('@sap/cds/lib')
const path = require('path')
//const fs = require('fs')
const {expect,GET} = cds.test(path.join(__dirname, '/..')).verbose()
describe('Destination Service', async function () {
const { status } = await GET `/catalog/Books`
it ('should return a list of destinations', async function () {
expect (status) .to.be.equal (200)
})
})
but the CAP stack does not start up and mocha is showing 0 tests passing.
What am I missing?
I also made the scenario available in https://github.com/MartinStenzig/cds-bug-5
My current setup is as follows:
@cap-js/sqlite: 1.0.1 @sap/cds: 7.1.1 @sap/cds-compiler: 4.1.2 @sap/cds-dk (global): 7.0.3 @sap/cds-fiori: 1.0.0 @sap/cds-foss: 4.0.2 @sap/cds-mtxs: 1.9.2 @sap/eslint-plugin-cds: 2.6.3 Node.js: v18.16.0