@@ -228,6 +228,9 @@ async function init() {
228
228
} ,
229
229
{
230
230
title : 'Playwright' ,
231
+ description : answers . needsVitest
232
+ ? undefined
233
+ : 'also supports unit testing with Playwright Component Testing' ,
231
234
value : 'playwright'
232
235
}
233
236
]
@@ -284,6 +287,7 @@ async function init() {
284
287
const needsCypress = argv . cypress || argv . tests || needsE2eTesting === 'cypress'
285
288
const needsCypressCT = needsCypress && ! needsVitest
286
289
const needsPlaywright = argv . playwright || needsE2eTesting === 'playwright'
290
+ const needsPlaywrightCT = needsPlaywright && ! needsVitest
287
291
288
292
const root = path . join ( cwd , targetDir )
289
293
@@ -333,6 +337,9 @@ async function init() {
333
337
if ( needsPlaywright ) {
334
338
render ( 'config/playwright' )
335
339
}
340
+ if ( needsPlaywrightCT ) {
341
+ render ( 'config/playwright-ct' )
342
+ }
336
343
if ( needsTypeScript ) {
337
344
render ( 'config/typescript' )
338
345
@@ -447,7 +454,9 @@ async function init() {
447
454
console . log ( `\nDone. Now run:\n` )
448
455
if ( root !== cwd ) {
449
456
const cdProjectName = path . relative ( cwd , root )
450
- console . log ( ` ${ bold ( green ( `cd ${ cdProjectName . includes ( ' ' ) ? `"${ cdProjectName } "` : cdProjectName } ` ) ) } ` )
457
+ console . log (
458
+ ` ${ bold ( green ( `cd ${ cdProjectName . includes ( ' ' ) ? `"${ cdProjectName } "` : cdProjectName } ` ) ) } `
459
+ )
451
460
}
452
461
console . log ( ` ${ bold ( green ( getCommand ( packageManager , 'install' ) ) ) } ` )
453
462
if ( needsPrettier ) {
0 commit comments