function runRemotePages
runRemotePages(
config: Config,
urls: string[],
browserPromise: Promise<Browser>
): Promise<RunOutcome>

Runs every remote QUnit page in the config, one after another, and reports as one run.

Sequential on purpose: two pages reporting into one TAP stream at once interleave, and a page nobody wrote is not a bundle that can be split — the parallelism a run has to offer is in the pages themselves, which are already whole suites.

import type { runRemotePages } from './remote-pages.ts';
import type { Config } from '../../types.ts';
import type { Browser } from 'playwright-core';

// Defined, not invoked: it drives a real browser.
async function example(run: typeof runRemotePages, config: Config, browser: Promise<Browser>) {
  return (await run(config, ['https://x/test/'], browser)).exitCode; // 0 when they all passed
}

Parameters

config: Config
urls: string[]
browserPromise: Promise<Browser>

Return Type

Promise<RunOutcome>

Usage

import { runRemotePages } from "lib/commands/test/remote-pages.ts";