vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Ignores tests with () or [] in name

Open Zombobot1 opened this issue 3 years ago • 2 comments

I cannot run individual tests if their names contain something in brackets

describe('test', () => {
  it('case (e)', () => {
    assert.equal(1, 2)
  })
})

When I click run test it runs and I see next:

In test panel: image

In file: image

It doesn't work with squared brackets 'case [e]' It works if I run describe It works with curly brackets 'case {e}' It works with empty brackets 'case ()'

Zombobot1 avatar Mar 30 '22 12:03 Zombobot1

Thanks

zxch3n avatar Mar 30 '22 13:03 zxch3n

Looks like something is wrong in the Vitest JSON output when a test case name contains brackets

zxch3n avatar Mar 30 '22 14:03 zxch3n

This issue was fixed for me by #94 (v0.2.32)

IGx89 avatar Dec 29 '22 14:12 IGx89