Interface: RspConformanceOptions
Defined in: packages/testing/src/rsp-conformance.ts:97
Properties
baseUrl
baseUrl: string | (() => string);
Defined in: packages/testing/src/rsp-conformance.ts:105
Origin, no trailing slash: http://127.0.0.1:5181.
A function is allowed and is usually what you want: the suite registers its
tests when the module loads, which is before any beforeAll has started a
server on an ephemeral port. Passing the string then freezes :0.
deviceId?
optional deviceId?: string;
Defined in: packages/testing/src/rsp-conformance.ts:108
UUID v7 the suite registers and syncs as. Generated when omitted.
fetch?
optional fetch?: {
(input, init?): Promise<Response>;
(input, init?): Promise<Response>;
};
Defined in: packages/testing/src/rsp-conformance.ts:110
fetch to use; the global by default.
Call Signature
(input, init?): Promise<Response>;
Parameters
| Parameter | Type |
|---|---|
input | RequestInfo | URL |
init? | RequestInit |
Returns
Promise<Response>
Call Signature
(input, init?): Promise<Response>;
Parameters
| Parameter | Type |
|---|---|
input | string | Request | URL |
init? | RequestInit |
Returns
Promise<Response>
runId?
optional runId?: string;
Defined in: packages/testing/src/rsp-conformance.ts:116
Distinguishes one run's fixtures from another's on a shared server: every form id, dataset name and submission id the suite creates carries it.
supports?
optional supports?: RspSupports;
Defined in: packages/testing/src/rsp-conformance.ts:111
Methods
getAuthToken()
getAuthToken(): string | Promise<string>;
Defined in: packages/testing/src/rsp-conformance.ts:106
Returns
string | Promise<string>