defineConfig
defineConfig(
config):ExtendedScreenCIConfig
Defined in: config.ts:46
Defines a screenci configuration file.
Extends Playwright’s config with screenci-specific options.
retries, testDir, and testMatch are managed by screenci
and cannot be set.
Parameters
Section titled “Parameters”config
Section titled “config”screenci configuration options
Returns
Section titled “Returns”Extended Playwright configuration with screenci-managed test discovery
Examples
Section titled “Examples”Minimal — all options have sensible defaults:
import { defineConfig } from 'screenci'export default defineConfig({})import { defineConfig } from 'screenci'
export default defineConfig({ projectName: 'my-project', videoDir: './videos', use: { baseURL: 'https://app.example.com', recordOptions: { aspectRatio: '16:9', // '16:9' | '9:16' | '1:1' | '4:3' | ... quality: '1080p', // '720p' | '1080p' | '1440p' | '2160p' fps: 60, // 24 | 30 | 60 }, trace: 'retain-on-failure', },})