Skip to content

Commit

Permalink
refactor: regex in filter do not work correctly in pest v2, so do not…
Browse files Browse the repository at this point in the history
… use regex
  • Loading branch information
yaegassy committed Aug 8, 2023
1 parent e4d78ee commit 537bfbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/pest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ async function runPest(filePath?: string, testName?: string) {

if (testName && filePath) {
args.push('--filter');
args.push(`'::${testName}$'`);
args.push(`'${testName}'`);
if (useSail) {
const relativeFilePath = filePath.replace(workspace.root, '').replace(/^\//, '');
args.push(`${relativeFilePath}`);
Expand Down

0 comments on commit 537bfbc

Please sign in to comment.