mirror of
https://github.com/LukeHagar/Sveltey.git
synced 2025-12-06 04:21:38 +00:00
Overhaul
This commit is contained in:
19
playwright.config.ts
Normal file
19
playwright.config.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
// playwright.config.ts
|
||||
import type { PlaywrightTestConfig } from '@playwright/test';
|
||||
|
||||
const config: PlaywrightTestConfig = {
|
||||
webServer: {
|
||||
command: 'npm run dev',
|
||||
port: 5173, // Default SvelteKit port
|
||||
reuseExistingServer: !process.env.CI,
|
||||
},
|
||||
testDir: 'tests',
|
||||
use: {
|
||||
baseURL: 'http://localhost:5173',
|
||||
},
|
||||
// projetos: [ // Example for multiple browsers, can be simplified
|
||||
// { name: 'chromium', use: { browserName: 'chromium' } },
|
||||
// ],
|
||||
};
|
||||
|
||||
export default config;
|
||||
Reference in New Issue
Block a user