File tree Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change 36
36
"eslint-config-prettier" : " ^9.1.0" ,
37
37
"eslint-plugin-svelte" : " ^2.44.0" ,
38
38
"globals" : " ^15.9.0" ,
39
- "is-port-reachable" : " ^4.0.0" ,
40
39
"postcss" : " ^8.4.47" ,
41
40
"prettier" : " ^3.3.3" ,
42
41
"prettier-plugin-svelte" : " ^3.2.6" ,
Original file line number Diff line number Diff line change 1
1
import { defineConfig } from '@playwright/test'
2
- import check from 'is-port-reachable'
3
-
4
- const dev = await check ( 5173 , { host : 'localhost' } )
5
2
6
3
export default defineConfig ( {
7
4
webServer : {
8
- command : 'npx vite build && npx vite preview' ,
9
- port : dev ? 5173 : 4173 ,
10
- reuseExistingServer : dev
11
- } ,
12
- use : {
13
- baseURL : `http://localhost:${ dev ? '5173' : '4173/svelte-toast/' } `
5
+ command : 'npm run dev' ,
6
+ port : 5173 ,
7
+ reuseExistingServer : true
14
8
} ,
15
9
testDir : 'tests' ,
16
- testMatch : '**/*.js'
10
+ testMatch : / ( . + \. ) ? ( t e s t | s p e c ) \. [ j t ] s /
17
11
} )
You can’t perform that action at this time.
0 commit comments