You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/cli.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,7 +106,7 @@ Run only [benchmark](https://vitest.dev/guide/features.html#benchmarking-experim
106
106
|`--typecheck [options]`| Custom options for typecheck pool. If passed without options, enables typechecking |
|`--typecheck.only`| Run only typecheck tests. This automatically enables typecheck (default: `false`) |
109
-
|`--project`| The name of the project to run if you are using Vitest workspace feature. This can be repeated for multiple projects: `--project=1 --project=2`|
109
+
|`--project`| The name of the project to run if you are using Vitest workspace feature. This can be repeated for multiple projects: `--project=1 --project=2`. You can also filter projects using wildcards like `--project=packages*`|
description: 'The name of the project to run if you are using Vitest workspace feature. This can be repeated for multiple projects: --project=1 --project=2',
527
+
description: 'The name of the project to run if you are using Vitest workspace feature. This can be repeated for multiple projects: --project=1 --project=2. You can also filter projects using wildcards like --project=packages*',
Copy file name to clipboardExpand all lines: packages/vitest/src/utils/base.ts
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -160,3 +160,12 @@ export function setProcessTitle(title: string) {
160
160
}
161
161
catch{}
162
162
}
163
+
164
+
exportfunctionescapeRegExp(s: string){
165
+
// From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#escaping
166
+
returns.replace(/[.*+?^${}()|[\]\\]/g,'\\$&')// $& means the whole matched string
0 commit comments