Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0198f12

Browse files
committed
feat: playwright component testing
1 parentca59ce9 commit0198f12

File tree

9 files changed

+510
-1
lines changed

9 files changed

+510
-1
lines changed

‎index.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,9 @@ async function init() {
228228
},
229229
{
230230
title:'Playwright',
231+
description:answers.needsVitest
232+
?undefined
233+
:'also supports unit testing with Playwright Component Testing',
231234
value:'playwright'
232235
}
233236
]
@@ -284,6 +287,7 @@ async function init() {
284287
constneedsCypress=argv.cypress||argv.tests||needsE2eTesting==='cypress'
285288
constneedsCypressCT=needsCypress&&!needsVitest
286289
constneedsPlaywright=argv.playwright||needsE2eTesting==='playwright'
290+
constneedsPlaywrightCT=needsPlaywright&&!needsVitest
287291

288292
constroot=path.join(cwd,targetDir)
289293

@@ -333,6 +337,9 @@ async function init() {
333337
if(needsPlaywright){
334338
render('config/playwright')
335339
}
340+
if(needsPlaywrightCT){
341+
render('config/playwright-ct')
342+
}
336343
if(needsTypeScript){
337344
render('config/typescript')
338345

@@ -447,7 +454,9 @@ async function init() {
447454
console.log(`\nDone. Now run:\n`)
448455
if(root!==cwd){
449456
constcdProjectName=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
}
452461
console.log(`${bold(green(getCommand(packageManager,'install')))}`)
453462
if(needsPrettier){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp