f
addQUnitFilter(): string
url: string,
filter: string | undefined
The URL to open, with the run's own filter applied as QUnit's.
f
couldBeAPage(url: string): boolean
Whether a URL could name a page at all: .html, or no extension.
f
filterRemotePagesFromConfig(config: Config): Promise<string[]>
The inputs of a run that are pages somebody else serves, in the order they were given.
f
isRemoteQUnitPage(url: string): Promise<boolean>
Whether a URL answers with a QUnit page, remembered per process.
f
looksLikeQUnitPage(html: string): boolean
What a QUnit page looks like from the outside.
f
runQUnitRemotePage(): Promise<void>
config: Config,
page: Page,
url: string
Opens one remote QUnit page and reports what it does, test by test.
f
trapQUnitHooks(): void
The page-side hook, as one self-contained function.
T
PageUnrunnableFailure = Failure.Of<PageUnrunnable>
The one failure this module declares.
v
PageUnrunnable: Failure.FailureFactory<"PageUnrunnable", { url: string; why: string; }>
The page could not be driven — it never loaded, or QUnit never finished.
Usage
import * as mod from "lib/setup/remote-page.ts";