Skip to content
masterclass Buddy

Playwright · Class

TestConfig

TestConfig is the object exported from a Playwright configuration file. It controls test discovery, execution, retries, reporting, projects, timeouts, and other test-run settings.

Last updated

Since
v1.10

Syntax

defineConfig({ ... })

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • FullConfig
  • TestProject
  • testConfig.expect
  • testConfig.use
  • testConfig.webServer
  • testConfig.workers
  • testConfig.testMatch
  • testConfig.testIgnore

Source: TestConfig | Playwright. Checked 2026-11-03.