Skip to content

test: adapt to cds 9 #344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

test: adapt to cds 9 #344

wants to merge 2 commits into from

Conversation

hm23
Copy link
Contributor

@hm23 hm23 commented May 28, 2025

No description provided.

// 2: no outbox -> consumer gets new root context
// REVISIT: for some reason, the emit done in the on succeeded callback gets a new root context when running in jest
expect(log.output.match(/\[telemetry\] - elapsed times:/g).length).to.equal(3) //> actually 2
expect(log.output.match(/\[telemetry\] - elapsed times:/g).length).to.equal(4)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

log.output in cds 8:
image

log.outputin cds 9:
image

@@ -50,7 +50,7 @@ describe('logging', () => {
attributes: {
'log.type': 'LogRecord',
'exception.message': "Cannot read properties of undefined (reading 'exist')",
'exception.stacktrace': s => s.match(/^TypeError: .+(\n\s+at .+){6}$/),
'exception.stacktrace': s => s.match(/^TypeError: .+(\n\s+at .+){5}$/),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stacktrace got shorter...

@hm23 hm23 requested a review from sjvans May 28, 2025 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant