Applied consistent code formatting across the project using Prettier, now configured to use 4-space indentation instead of tabs.
24 lines
624 B
TypeScript
24 lines
624 B
TypeScript
import type { PlaywrightTestConfig } from '@playwright/test';
|
|
|
|
const config: PlaywrightTestConfig = {
|
|
webServer: {
|
|
command: 'npm run build && npm run preview',
|
|
port: 4173
|
|
// url: 'http://scott.localhost:5173',
|
|
// reuseExistingServer: true,
|
|
// stderr: 'pipe',
|
|
// stdout: 'pipe',
|
|
},
|
|
testDir: 'tests',
|
|
testMatch: /(.+\.)?(test|spec)\.[jt]s/,
|
|
reporter: 'list',
|
|
use: {
|
|
// Collect trace when retrying the failed test.
|
|
trace: 'on-first-retry'
|
|
}
|
|
// grep: /@node_modules/,
|
|
// grepInverse: /@node_modules/,
|
|
};
|
|
|
|
export default config;
|