Skip to content

Commit 3a946b6

Browse files
committed
fix: add tsconfig.json for playwright tests
1. Avoid "The file must be included in at least one of the projects provided" error when using type-aware ESLint configurations; 2. It's recommended by the [playwright documentation](https://playwright.dev/docs/test-typescript#tsconfigjson): > We recommend setting up a separate `tsconfig.json` in the tests directory so that you can change some preferences specifically for the tests.
1 parent a1405c8 commit 3a946b6

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,9 @@ async function init() {
336336
if (needsCypressCT) {
337337
render('tsconfig/cypress-ct')
338338
}
339+
if (needsPlaywright) {
340+
render('tsconfig/playwright')
341+
}
339342
if (needsVitest) {
340343
render('tsconfig/vitest')
341344
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "@vue/tsconfig/tsconfig.node.json",
3+
"include": ["./**/*"]
4+
}

0 commit comments

Comments
 (0)