28 lines
652 B
JavaScript
28 lines
652 B
JavaScript
// playwright.config.js
|
|
// @ts-check
|
|
// import { devices } from '@playwright/test';
|
|
|
|
/** @type {import('@playwright/test').PlaywrightTestConfig} */
|
|
const config = {
|
|
webServer: {
|
|
command: 'npm run build && npm run start',
|
|
port: 3000
|
|
},
|
|
projects: [
|
|
{
|
|
name: 'chromium',
|
|
use: {
|
|
channel: 'chromium',
|
|
browserName: 'chromium',
|
|
headless: true,
|
|
launchOptions: {
|
|
args:
|
|
['--headless', '--disable-gpu', '--no-sandbox']
|
|
},
|
|
}
|
|
}
|
|
],
|
|
};
|
|
|
|
export default config;
|