-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: Separate playwrite templates for js vs ts (#4479)
* FIX: Separate playwrite templates for js vs ts Playwrite file when building with typescript requires the playwrite.config file to have extension .ts * package.json shoudnt be duplicated * install @playwright/test as dev dep to remove the red squigglies * make the .ts file actually use typescript * oops, typo * bump version * fix merging * use next version of @playwright/test for TS users Co-authored-by: Rich Harris <[email protected]>
- Loading branch information
1 parent
aa2e2c4
commit 143d17f
Showing
6 changed files
with
113 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
packages/create-svelte/shared/+playwright+typescript/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"devDependencies": { | ||
"@playwright/test": "next" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/create-svelte/shared/+playwright+typescript/playwright.config.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import type { PlaywrightTestConfig } from '@playwright/test'; | ||
|
||
const config: PlaywrightTestConfig = { | ||
webServer: { | ||
command: 'npm run build && npm run preview', | ||
port: 3000 | ||
} | ||
}; | ||
|
||
export default config; |
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.