Skip to content

Commit db175bb

Browse files
committed
workflow: fix test script -p flag
1 parent c7e28fd commit db175bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ let regex
88
if (args.p) {
99
const packages = (args.p || args.package).split(',').join('|')
1010
regex = `.*@vue/(${packages}|cli-plugin-(${packages}))/.*\\.spec\\.js$`
11-
const i = rawArgs.findIndex('-p')
11+
const i = rawArgs.indexOf('-p')
1212
rawArgs.splice(i, 2)
1313
}
1414

0 commit comments

Comments
 (0)