Visual studio code 如何使用VSCode更改Jest Runner的CLI参数

Visual studio code 如何使用VSCode更改Jest Runner的CLI参数,visual-studio-code,jestjs,windows-subsystem-for-linux,Visual Studio Code,Jestjs,Windows Subsystem For Linux,我正在从MacOS切换到Windows WSL2 Ubuntu子系统 我想使用JestRunner插件从VSCode运行一个基本的Jest测试: 当我单击“运行”按钮时,它会在VSCode上打开一个终端(WSL不是PowerShell),但它会自动启动此命令 vincent@LAPTOP-xxxxx:~/Development/Labomaton/packages/api/node_modules$ node "//wsl$/Ubuntu-20.04/home/vincent/Deve

我正在从MacOS切换到Windows WSL2 Ubuntu子系统

我想使用JestRunner插件从VSCode运行一个基本的Jest测试:

当我单击“运行”按钮时,它会在VSCode上打开一个终端(WSL不是PowerShell),但它会自动启动此命令

vincent@LAPTOP-xxxxx:~/Development/Labomaton/packages/api/node_modules$ node "//wsl$/Ubuntu-20.04/home/vincent/Development/Labomaton/packages/api/node_modules/jest/bin/jest.js" 
"//wsl$/Ubuntu-20.04/home/vincent/Development/Labomaton/packages/api/src/user/infrastructure/rest/pipes/create-user-validation.spec.ts"
 -t "Register user into Labomaton missing firstname"
internal/modules/cjs/loader.js:638
    throw err;
    ^

Error: Cannot find module '/wsl$/Ubuntu-20.04/home/vincent/Development/Labomaton/packages/api/node_modules/jest/bin/jest.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
因此,我尝试使用此节点模块的正确路径运行相同的命令:

vincent@LAPTOP-xxxxx:~/Development/Labomaton/packages/api/node_modules$ node "/home/vincent/Development/Labomaton/packages/api/node_modules/jest/bin/jest.js"
 "/home/vincent/Development/Labomaton/packages/api/src/user/infrastructure/rest/pipes/create-user-validation.spec.ts"
 -t "Register user into Labomaton missing firstname"
 PASS  ../src/user/infrastructure/rest/pipes/create-user-validation.spec.ts
  Register user into Labomaton
    ✓ missing firstname (5 ms)

Test Suites: 1 passed, 1 total
Tests:       1 passed, 1 total
Snapshots:   0 total
Time:        2.313 s
我的问题是:如何更改此VSCode JestRunner功能的参数路径?