Repository navigation
test(e2e): Add Mastra Jev classifier test to node-mastra - #25115
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit d3c4b79. Configure here.
size-limit report 📦
|
3b82bae to
8fd928f
Compare
| @@ -0,0 +1,10 @@ | |||
| import { createOpenRouter } from '@openrouter/ai-sdk-provider'; | |||
There was a problem hiding this comment.
l: I think other scenarios also use openrouter. could this be used there as well?
There was a problem hiding this comment.
They do now in this pr, I moved the weather agent to the same shared helper.
There was a problem hiding this comment.
I meant for instance node-eve has the same logic and that could also be replaced
There was a problem hiding this comment.
Right, I'll do that in follow-up tasks as it doesn't quite fit into here.
| const APP = 'node-mastra'; | ||
| const TICKET = 'My checkout page shows a blank screen after I click Pay.'; | ||
|
|
||
| const attrValue = (span: SerializedStreamedSpan, key: string): unknown => span.attributes?.[key]?.value; |
There was a problem hiding this comment.
nit but this seems like an unnecessary indirection 😅
f7c126f to
52100dc
Compare
52100dc to
fe21450
Compare

What
Adds a node-mastra e2e test that runs a real Jev evaluation through a Mastra
Classifier(via OpenRouter) and checks thegen_ai.evaluatespan.Why
Covers the classifier instrumentation from #25044 against the real provider, not only a mock model.