Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: make sync-playwright command visible #924

Merged
merged 1 commit into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions packages/cli/e2e/__tests__/help.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@ describe('help', () => {
trigger Trigger your checks on Checkly.`)

expect(stdout).toContain(`ADDITIONAL COMMANDS
destroy Destroy your project with all its related resources.
env Manage Checkly environment variables.
help Display help for checkly.
login Login to your Checkly account or create a new one.
logout Log out and clear any local credentials.
runtimes List all supported runtimes and dependencies.
switch Switch user account.
whoami See your currently logged in account and user.`)
destroy Destroy your project with all its related resources.
env Manage Checkly environment variables.
help Display help for checkly.
login Login to your Checkly account or create a new one.
logout Log out and clear any local credentials.
runtimes List all supported runtimes and dependencies.
switch Switch user account.
sync-playwright Copy Playwright config into the Checkly config file.
whoami See your currently logged in account and user.`)
})
})
4 changes: 2 additions & 2 deletions packages/cli/src/commands/sync-playwright.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { ux } from '@oclif/core'
import PlaywrightConfigTemplate from '../playwright/playwright-config-template'

export default class SyncPlaywright extends BaseCommand {
static hidden = true
static description = 'Copy Playwright config into the Checkly config file'
static hidden = false
static description = 'Copy Playwright config into the Checkly config file.'

async run (): Promise<void> {
ux.action.start('Syncing Playwright config to the Checkly config file', undefined, { stdout: true })
Expand Down
Loading