mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-06 08:18:16 -05:00
feat: new CLI option --test-pattern
This commit is contained in:
6
.changeset/gorgeous-keys-leave.md
Normal file
6
.changeset/gorgeous-keys-leave.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@pnpm/common-cli-options-help": minor
|
||||
"pnpm": minor
|
||||
---
|
||||
|
||||
New CLI option added: --test-pattern.
|
||||
@@ -96,6 +96,10 @@ export const FILTERING = {
|
||||
description: 'If a selector starts with !, it means the packages matching the selector must be excluded. E.g., "pnpm --filter !foo" selects all packages except "foo"',
|
||||
name: '--filter !<selector>',
|
||||
},
|
||||
{
|
||||
description: 'Defines files related to tests. Useful with the changed since filter. When selecting only changed packages and their dependent packages, the dependent packages will be ignored in case a package has changes only in tests. Usage example: pnpm --filter=...[origin/master] --test-pattern=test/* test',
|
||||
name: '--test-pattern <pattern>',
|
||||
},
|
||||
],
|
||||
title: 'Filtering options (run the command only on packages that satisfy at least one of the selectors)',
|
||||
}
|
||||
|
||||
@@ -34,6 +34,7 @@ export const GLOBAL_OPTIONS = R.pick([
|
||||
'prefix',
|
||||
'reporter',
|
||||
'stream',
|
||||
'test-pattern',
|
||||
'workspace-packages',
|
||||
'workspace-root',
|
||||
], allTypes)
|
||||
|
||||
Reference in New Issue
Block a user