const {playwrightLauncher} = require('@web/test-runner-playwright');

const defaultBrowsers = [
  playwrightLauncher({product: 'chromium'}),
  playwrightLauncher({product: 'webkit'}),
  playwrightLauncher({product: 'firefox', concurrency: 1}),
];

const envBrowsers =
  process.env.BROWSERS &&
  process.env.BROWSERS.split(',').map((product) =>
    playwrightLauncher({product})
  );

const browsers = envBrowsers ?? defaultBrowsers;

module.exports = {
  files: `packages/scoped-custom-element-registry/test/**/*.test.(js|html)`,
  nodeResolve: true,
  concurrency: 10,
  browsers,
};

const {playwrightLauncher} = require('@web/test-runner-playwright');

const defaultBrowsers = [
  playwrightLauncher({product: 'chromium'}),
  playwrightLauncher({product: 'webkit'}),
  playwrightLauncher({product: 'firefox', concurrency: 1}),
];

const envBrowsers =
  process.env.BROWSERS &&
  process.env.BROWSERS.split(',').map((product) =>
    playwrightLauncher({product})
  );

const browsers = envBrowsers || defaultBrowsers;

module.exports = {
  files: `packages/scoped-custom-element-registry/test/**/*.test.(js|html)`,
  nodeResolve: true,
  concurrency: 10,
  browsers,
};

Fix new JS for old node
Fix new JS for old node
