Home / File/ playwright.config.js — react Source File

playwright.config.js — react Source File

Architecture documentation for playwright.config.js, a javascript file in the react codebase.

Entity Profile

Source Code

const semver = require('semver');
const fs = require('fs');
const ReactVersionSrc = fs.readFileSync(require.resolve('shared/ReactVersion'));
const reactVersion = /export default '([^']+)';/.exec(ReactVersionSrc)[1];

const config = {
  use: {
    headless: true,
    browserName: 'chromium',
    launchOptions: {
      // This bit of delay gives async React time to render
      // and DevTools operations to be sent across the bridge.
      slowMo: 100,
    },
    url: process.env.REACT_VERSION
      ? 'http://localhost:8080/e2e-regression.html'
      : 'http://localhost:8080/e2e.html',
    react_version: process.env.REACT_VERSION
      ? semver.coerce(process.env.REACT_VERSION).version
      : reactVersion,
    trace: 'retain-on-failure',
  },
  // Some of our e2e tests can be flaky. Retry tests to make sure the error isn't transient
  retries: 3,
};

module.exports = config;

Frequently Asked Questions

What does playwright.config.js do?
playwright.config.js is a source file in the react codebase, written in javascript.
Where is playwright.config.js in the architecture?
playwright.config.js is located at packages/react-devtools-inline/playwright.config.js (directory: packages/react-devtools-inline).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free