Skip to content

Commit

Permalink
fix(tests): support commas in test names
Browse files Browse the repository at this point in the history
  • Loading branch information
innocenzi committed Dec 25, 2023
1 parent 2b95c36 commit eb30b8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/run-current-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export async function registerRunCurrentTestCommand(context: ExtensionContext) {

while (line > 0) {
const lineText = editor.document.lineAt(line).text
const match = lineText.match(/^\s*(?:it|test)\(([^,)]+)/m)
const match = lineText.match(/^\s*(?:it|test)\((.+['"])[,)]/m)

if (match) {
method = match[1]
Expand Down

0 comments on commit eb30b8b

Please sign in to comment.