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

fix: :bug: new escape regex for line breaks using template strings on… #319

Closed louiscavalcante closed 8 months ago

louiscavalcante commented 1 year ago

This PR fix the following issue:

When there's a line break on the test name using template string, the debugger button will run other tests, not only the intended test. This bug is only occurring on linux, but I think it can also happen on Windows. My friend has a mac and the bug doesn't happen on his OS. The bug will make the Jest-runner CLI command erase everything after the line break on the test name.

Test name example: it(should return error when there is no product, async () => { } )

it(should return error when there is no category, async () => { } )

Issue #318

firsttris commented 1 year ago

thanks for your contribution