chore: pnpm dev defaults to the _community test suite (#11044)
- `pnpm dev` defaults to the _community test suite - add a console log indicating which suite is running
This commit is contained in:
@@ -35,7 +35,7 @@ const filename = fileURLToPath(import.meta.url)
|
|||||||
const dirname = path.dirname(filename)
|
const dirname = path.dirname(filename)
|
||||||
|
|
||||||
const {
|
const {
|
||||||
_: [testSuiteArg],
|
_: [testSuiteArg = '_community'],
|
||||||
...args
|
...args
|
||||||
} = minimist(process.argv.slice(2))
|
} = minimist(process.argv.slice(2))
|
||||||
|
|
||||||
@@ -44,6 +44,8 @@ if (!testSuiteArg || !fs.existsSync(path.resolve(dirname, testSuiteArg))) {
|
|||||||
process.exit(0)
|
process.exit(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(`Selected test suite: ${testSuiteArg}`)
|
||||||
|
|
||||||
if (args.turbo === true) {
|
if (args.turbo === true) {
|
||||||
process.env.TURBOPACK = '1'
|
process.env.TURBOPACK = '1'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user