mirror of
https://github.com/pnpm/pnpm.git
synced 2025-12-24 23:58:07 -05:00
fix: test-pattern
This commit is contained in:
5
.changeset/forty-ads-promise.md
Normal file
5
.changeset/forty-ads-promise.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"pnpm": patch
|
||||
---
|
||||
|
||||
`test-pattern` should work with all commands, not just `pnpm test`.
|
||||
5
.changeset/modern-grapes-bathe.md
Normal file
5
.changeset/modern-grapes-bathe.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@pnpm/config": patch
|
||||
---
|
||||
|
||||
The test-pattern option should be an Array.
|
||||
@@ -91,7 +91,7 @@ export const types = Object.assign({
|
||||
'workspace-concurrency': Number,
|
||||
'workspace-packages': [String, Array],
|
||||
'workspace-root': Boolean,
|
||||
'test-pattern': String,
|
||||
'test-pattern': [String, Array],
|
||||
}, npmTypes.types)
|
||||
|
||||
export type CliOptions = Record<string, unknown> & { dir?: string }
|
||||
|
||||
@@ -178,7 +178,7 @@ export default async function run (inputArgv: string[]) {
|
||||
linkWorkspacePackages: !!config.linkWorkspacePackages,
|
||||
prefix: process.cwd(),
|
||||
workspaceDir: wsDir,
|
||||
testPattern: cmd === 'test' ? config.testPattern : undefined,
|
||||
testPattern: config.testPattern,
|
||||
})
|
||||
config.selectedProjectsGraph = filterResults.selectedProjectsGraph
|
||||
if (R.isEmpty(config.selectedProjectsGraph)) {
|
||||
|
||||
Reference in New Issue
Block a user