Skip to content

Commit ef489ce

Browse files
nicohrubeccodex
andcommitted
test(node): Require Mastra spans in recording-off test
Co-Authored-By: GPT-6 <codex@openai.com>
1 parent ec42053 commit ef489ce

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • dev-packages/node-integration-tests/suites/tracing/mastra

‎dev-packages/node-integration-tests/suites/tracing/mastra/test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ conditionalTest({ min: 22 })('Mastra integration', () => {
9595
span: container => {
9696
expect(container.items.find(span => span.is_segment && span.name === 'mastra-test')).toBeDefined();
9797
const spans = container.items.filter(span => span.attributes[SENTRY_ORIGIN]?.value === 'auto.ai.mastra');
98+
expect(spans).toHaveLength(2);
9899
for (const span of spans) {
99100
expect(span.attributes[GEN_AI_INPUT_MESSAGES]).toBeUndefined();
100101
expect(span.attributes[GEN_AI_OUTPUT_MESSAGES]).toBeUndefined();

0 commit comments

Comments
 (0)