Skip to content

Commit 83b8cc1

Browse files
Qardclaude
andcommitted
Drop registry test for removed @mastra/core/mastra-core env aliases
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f198848 commit 83b8cc1

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

js/src/instrumentation/registry.test.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -261,24 +261,4 @@ describe("Environment Variable Configuration", () => {
261261
expect(testRegistry.isEnabled()).toBe(true);
262262
testRegistry.disable();
263263
});
264-
265-
it("should treat Mastra aliases as mastra instrumentation", async () => {
266-
const iso = (await import("../isomorph")).default;
267-
mockNewTracingChannel.mockClear();
268-
iso.getEnv = (name: string) => {
269-
if (name === "BRAINTRUST_DISABLE_INSTRUMENTATION") {
270-
return "mastra-core,@mastra/core";
271-
}
272-
return originalGetEnv(name);
273-
};
274-
275-
const testRegistry = new (registry.constructor as any)();
276-
testRegistry.enable();
277-
278-
expect(testRegistry.isEnabled()).toBe(true);
279-
expect(mockNewTracingChannel).not.toHaveBeenCalledWith(
280-
"orchestrion:@mastra/core:agent.execute",
281-
);
282-
testRegistry.disable();
283-
});
284264
});

0 commit comments

Comments
 (0)