mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-05 23:42:03 +00:00
Replace spawn shell option with explicit shell args to avoid DEP0190 warning
This commit is contained in:
parent
0681c71894
commit
a8ccd7b6fb
5 changed files with 27 additions and 16 deletions
|
|
@ -241,9 +241,12 @@ describe('handleAutoUpdate', () => {
|
|||
handleAutoUpdate(mockUpdateInfo, mockSettings, '/root', mockSpawn);
|
||||
|
||||
expect(mockSpawn).toHaveBeenCalledWith(
|
||||
'npm i -g @qwen-code/qwen-code@nightly',
|
||||
expect.stringMatching(/^(bash|cmd\.exe)$/),
|
||||
expect.arrayContaining([
|
||||
expect.stringMatching(/^(-c|\/c)$/),
|
||||
'npm i -g @qwen-code/qwen-code@nightly',
|
||||
]),
|
||||
{
|
||||
shell: true,
|
||||
stdio: 'pipe',
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue