Skip to content

Add Test Cases #961

Description

@rcampanate

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

There is an error on the test.js (at least for the current version running on the BTP provided on the practice system).
the 3 initial lines
const cds = require('@sap/cds/lib')
const { default: axios } = require('axios')
const { GET, POST, DELETE, PATCH, expect } = cds.test(__dirname + '../../')

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

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