Skip to content

Commit c9f71d3

Browse files
committed
Update test config
1 parent 98f23fc commit c9f71d3

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"eslint-config-prettier": "^9.1.0",
3737
"eslint-plugin-svelte": "^2.44.0",
3838
"globals": "^15.9.0",
39-
"is-port-reachable": "^4.0.0",
4039
"postcss": "^8.4.47",
4140
"prettier": "^3.3.3",
4241
"prettier-plugin-svelte": "^3.2.6",

playwright.config.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
import { defineConfig } from '@playwright/test'
2-
import check from 'is-port-reachable'
3-
4-
const dev = await check(5173, { host: 'localhost' })
52

63
export default defineConfig({
74
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
148
},
159
testDir: 'tests',
16-
testMatch: '**/*.js'
10+
testMatch: /(.+\.)?(test|spec)\.[jt]s/
1711
})

0 commit comments

Comments
 (0)