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
264 stars 124 forks source link

fix: execution error when testName contains quotes and parentheses #295

Open btea opened 1 year ago

btea commented 1 year ago

The following test case, when I click the Run button to execute, the terminal will throw an error.

describe('a "(name)"', () => {
  it('b', () => {
    expect(1).toBe(1);
  })
});
btea commented 1 year ago

@firsttris Please review this, thanks.