variable RemotePageMixedWithOtherInputs

A run was given a remote QUnit page and something else as well — a file, or another URL.

Both are runnable; what they cannot be is one run. The page reports itself and a bundle reports through this process's own server, so together they would announce twice and plan twice over a single TAP stream. Two commands say exactly what one command cannot.

import { RemotePageMixedWithOtherInputs } from './remote-pages.ts';

RemotePageMixedWithOtherInputs({ page: 'https://x/test/', alongside: 2 }).message;
// 'https://x/test/ is a suite of its own and runs on its own — 2 other inputs were given too'
RemotePageMixedWithOtherInputs({ page: 'https://x/test/', alongside: 1 }).message.endsWith('1 other input was given too'); // true

Type

Failure.FailureFactory<
"RemotePageMixedWithOtherInputs",
{ page: string; alongside: number; }
>

Usage

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