@@ -228,6 +228,9 @@ async function init() {
228228} ,
229229{
230230title :'Playwright' ,
231+ description :answers . needsVitest
232+ ?undefined
233+ :'also supports unit testing with Playwright Component Testing' ,
231234value :'playwright'
232235}
233236]
@@ -284,6 +287,7 @@ async function init() {
284287const needsCypress = argv . cypress || argv . tests || needsE2eTesting === 'cypress'
285288const needsCypressCT = needsCypress && ! needsVitest
286289const needsPlaywright = argv . playwright || needsE2eTesting === 'playwright'
290+ const needsPlaywrightCT = needsPlaywright && ! needsVitest
287291
288292const root = path . join ( cwd , targetDir )
289293
@@ -333,6 +337,9 @@ async function init() {
333337if ( needsPlaywright ) {
334338render ( 'config/playwright' )
335339}
340+ if ( needsPlaywrightCT ) {
341+ render ( 'config/playwright-ct' )
342+ }
336343if ( needsTypeScript ) {
337344render ( 'config/typescript' )
338345
@@ -447,7 +454,9 @@ async function init() {
447454console . log ( `\nDone. Now run:\n` )
448455if ( root !== cwd ) {
449456const 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+ )
451460}
452461console . log ( `${ bold ( green ( getCommand ( packageManager , 'install' ) ) ) } ` )
453462if ( needsPrettier ) {