From af5c46a25955e339c3bd6851687d0e59b5b9e7f8 Mon Sep 17 00:00:00 2001 From: Yevhen Laichenkov Date: Thu, 11 Jan 2024 23:25:15 +0100 Subject: [PATCH] chore: remove code duplication --- src/generator.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/generator.ts b/src/generator.ts index 134a247..34d24c1 100644 --- a/src/generator.ts +++ b/src/generator.ts @@ -36,11 +36,9 @@ const assetsDir = path.join(__dirname, '..', 'assets'); type CliArgumentKey = 'browser' | 'no-browsers' | 'next' - | 'next' | 'beta' | 'ct' | 'quiet' - | 'quiet' | 'gha' | 'install-deps' | 'lang'; @@ -63,7 +61,7 @@ export class Generator { this._patchGitIgnore(); await this._patchPackageJSON(answers); if (answers.framework) - this._printEpilogueCT(answers); + this._printEpilogueCT(); else this._printEpilogue(answers); } @@ -320,7 +318,7 @@ Visit https://playwright.dev/docs/intro for more information. ✨ Happy hacking! 🎭`); } - private _printEpilogueCT(answers: PromptOptions) { + private _printEpilogueCT() { console.log(colors.green('✔ Success!') + ' ' + colors.bold(`Created a Playwright Test project at ${this.rootDir}`)); console.log(` Inside that directory, you can run several commands: