mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-11-07 06:19:43 -10:00
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:
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]>([
|
||||
|
||||
Reference in new issue
Block a user