17 lines
392 B
JavaScript
17 lines
392 B
JavaScript
|
|
import { defineConfig } from '@playwright/test';
|
||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
testDir: './test',
|
||
|
|
testMatch: '**/*.spec.js',
|
||
|
|
use: {
|
||
|
|
baseURL: 'http://127.0.0.1:8082',
|
||
|
|
},
|
||
|
|
webServer: {
|
||
|
|
command: 'npx vite --port 8082 --host 127.0.0.1',
|
||
|
|
url: 'http://127.0.0.1:8082/test/index.html',
|
||
|
|
reuseExistingServer: !process.env.CI,
|
||
|
|
stdout: 'pipe',
|
||
|
|
stderr: 'pipe',
|
||
|
|
},
|
||
|
|
});
|