Skip to content

Add Test Cases #950

Description

@sylver2211

Tutorials: https://developers.sap.com/tutorials/add-test-cases.html

Write here how you think we can improve the tutorial ...

my test failed:

const cds = require('@sap/cds/lib')
const { default: axios } = require('axios')
const { GET, POST, DELETE, PATCH, expect } = cds.test(__dirname + '../../')

the fix was:
const cds = require('@sap/cds/lib')
const { GET, POST, DELETE, PATCH, axios, expect } = cds.test(__dirname + '../../')

and also I had some more incidents and users which. I had to adjust
line 12 expect(await SELECT.from(Incidents)).to.have.length(5) and
line 18 expect(await SELECT.from(Customers)).to.have.length(4)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions