Skip to content

Commit

Permalink
Add cds.test.log
Browse files Browse the repository at this point in the history
  • Loading branch information
daogrady committed Nov 11, 2024
1 parent e431159 commit 8643113
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apis/test.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,6 @@ declare const test: {
(command: string, ...args: string[]): Test,

in (dirname: string): Test,

log: Test['log'],
}
4 changes: 4 additions & 0 deletions test/typescript/apis/project/cds-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ test.cds.ql === cds.ql
test.cds.ApplicationService === cds.ApplicationService
test.cds.get === cds.get

cds.test.log().clear()
cds.test.log().output.charAt(1)
cds.test.log().release()

const {server, url} = await test

GET `/processor/$metadata`
Expand Down

0 comments on commit 8643113

Please sign in to comment.