test(core): pin hook error-text redaction with value-level assertions (#11785)

Refs #11760 item 1 only

Co-authored-by: 易良 <[email protected]>
Co-authored-by: Shaojin Wen <[email protected]>
This commit is contained in:
authored and GitHub committed 2026-11-03 11:42:19 +08:00
1 parent 0191185b10
commit 9c54abcd3f
1 file changed
+3
@@ -777,6 +777,9 @@ describe('QwenLogger', () => {
// sink even when telemetry log prompts are on.
const callArgs = enqueueSpy.mock.calls[0][0];
expect(callArgs.properties).not.toHaveProperty('error');
const serializedEvent = JSON.stringify(callArgs);
expect(serializedEvent).not.toContain('error output');
expect(serializedEvent).not.toContain('Command failed');
});
it.each<[string, Parameters<typeof shortHook>, string]>([