chore: hide test server related cli commands (#29532)

This commit is contained in:
Pavel Feldman 2024-02-16 14:32:44 -08:00 committed by GitHub
parent 269a293ba1
commit 4f1d8cdd63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -70,7 +70,7 @@ function addListFilesCommand(program: Command) {
}
function addClearCacheCommand(program: Command) {
const command = program.command('clear-cache');
const command = program.command('clear-cache', { hidden: true });
command.description('clears build and test caches');
command.option('-c, --config <file>', `Configuration file, or a test directory with optional "playwright.config.{m,c}?{js,ts}"`);
command.action(async opts => {
@ -98,7 +98,7 @@ export async function removeFolder(folder: string) {
}
function addFindRelatedTestFilesCommand(program: Command) {
const command = program.command('find-related-test-files [source-files...]');
const command = program.command('find-related-test-files [source-files...]', { hidden: true });
command.description('Returns the list of related tests to the given files');
command.option('-c, --config <file>', `Configuration file, or a test directory with optional "playwright.config.{m,c}?{js,ts}"`);
command.action(async (files, options) => {