mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-07-09 17:19:02 +00:00
fix(test): add TERM_PROGRAM_VERSION to OSC 8 detection tests
iTerm.app and vscode version-gated detection requires TERM_PROGRAM_VERSION to be set. The beforeEach cleanup deletes it, causing supportsOsc8Hyperlinks() to return false and the OSC 8 envelope to not be emitted.
This commit is contained in:
parent
ac3c32e885
commit
32b9fc4a4a
1 changed files with 2 additions and 0 deletions
|
|
@ -2458,6 +2458,7 @@ describe('showFallbackMessage', () => {
|
|||
configurable: true,
|
||||
});
|
||||
process.env['TERM_PROGRAM'] = 'iTerm.app';
|
||||
process.env['TERM_PROGRAM_VERSION'] = '3.5.0';
|
||||
|
||||
showFallbackMessage('https://chat.qwen.ai/device?code=ABC123');
|
||||
|
||||
|
|
@ -2562,6 +2563,7 @@ describe('showFallbackMessage', () => {
|
|||
configurable: true,
|
||||
});
|
||||
process.env['TERM_PROGRAM'] = 'vscode';
|
||||
process.env['TERM_PROGRAM_VERSION'] = '1.85.0';
|
||||
|
||||
showFallbackMessage('https://chat.qwen.ai/device?code=ABC123');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue