firsttris / vscode-jest-runner

Simple way to run or debug one or more tests from context menu, codelens or command plalette
https://marketplace.visualstudio.com/items?itemName=firsttris.vscode-jest-runner
MIT License
265 stars 124 forks source link

"Run Jest" contextual menu no longer working on whole file, since 0.4.62 #324

Closed etiennepoirier2005 closed 1 year ago

etiennepoirier2005 commented 1 year ago

With previous versions, I could right-click anywhere on a file, but outside a test, and select "Run Jest" to run tests for whole file (or whole "describe" section). Since version 0.4.62, "Run Jest" does nothing if not done inside a test (inside a "it"). Happens with versions 0.4.62, 0.4.63 and 0.4.64 Thank you. image

firsttris commented 1 year ago

hey @etiennepoirier2005 thanks for reporting this issue.

this is then probably related to https://github.com/firsttris/vscode-jest-runner/pull/301

because this was the change from 0.4.62

firsttris commented 1 year ago

should be fixed in 0.4.65

etiennepoirier2005 commented 1 year ago

Hello Tristan, I confirm it's working again. Thank you, that was fast! :)

firsttris commented 1 year ago

@domsleee, he fixed it.