vscode-jest-runner icon indicating copy to clipboard operation
vscode-jest-runner copied to clipboard

not support jestrunner.configPath in vscode workspace

Open zhongzhong0505 opened this issue 4 years ago • 2 comments

image

zhongzhong0505 avatar Nov 27 '20 06:11 zhongzhong0505

I found a workaround for a different stting that had the same error. I added jestrunner.jestPath setting to my .code-workspace file. For example

{
  "folders": [
    {
      "name": "root",
      "path": "."
    },
    {
      "path": "packages/backend"
    },
    {
      "path": "packages/frontend"
    }
  ],
  "settings": {
    "files.exclude": {
      "packages": true
    },
    "jestrunner.jestPath": "node_modules/jest/bin/jest.js"
  }
}

That got me working. Not sure if that will fix your issue

mgutz avatar Jun 06 '21 09:06 mgutz

Yea I'm getting the same issue. I have a custom jest config file which has a custom testMatch settings, doesn't seem to load "run | debug" above the test in vscode in the correct files.

basickarl avatar Jul 09 '21 13:07 basickarl

i think its just a batter of the naming of your config file:

https://github.com/firsttris/vscode-jest-runner/blob/master/src/jestRunnerConfig.ts#L111

please re-open if your issue still persists.

firsttris avatar Oct 14 '22 09:10 firsttris