We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6d7a69 commit 0b44b9dCopy full SHA for 0b44b9d
dev-packages/node-integration-tests/suites/tracing/meta-tags/test.ts
@@ -16,8 +16,8 @@ describe('getTraceMetaTags', () => {
16
baggage: 'sentry-environment=production',
17
});
18
19
- // @ts-expect-error - this is a string, types just don't work well
20
- const html = typeof response === 'object' && (response?.response as unknown as string);
+ const html =
+ typeof response === 'object' && response && 'response' in response && (response?.response as unknown as string);
21
22
expect(html).toMatch(/<meta name="sentry-trace" content="cd7ee7a6fe3ebe7ab9c3271559bc203c-[a-z0-9]{16}-1"\/>/);
23
expect(html).toContain('<meta name="baggage" content="sentry-environment=production"/>');
0 commit comments