function isRemoteQUnitPage
isRemoteQUnitPage(url: string): Promise<boolean>

Whether a URL answers with a QUnit page, remembered per process.

Asked twice — once while the inputs are expanded, once when the run decides what to do with them — and a suite's own page should not be fetched twice to answer the same question. The answer is a property of the URL, so the memo is keyed by it.

import { isRemoteQUnitPage } from './remote-page.ts';

// Defined, not invoked: it fetches the URL.
function example() {
  return isRemoteQUnitPage('https://objectmodel.js.org/test/'); // true
}

Parameters

url: string

Return Type

Promise<boolean>

Usage

import { isRemoteQUnitPage } from "lib/setup/remote-page.ts";