@zudojs/testing 1.2.3 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assertions/deepEqual/deepEqual.collections.d.ts +0 -1
- package/dist/assertions/deepEqual/deepEqual.collections.js +0 -1
- package/dist/assertions/deepEqual/deepEqual.core.d.ts +0 -1
- package/dist/assertions/deepEqual/deepEqual.core.js +0 -1
- package/dist/assertions/deepEqual/deepEqual.describe.d.ts +0 -1
- package/dist/assertions/deepEqual/deepEqual.describe.js +0 -1
- package/dist/assertions/deepEqual/deepEqual.identity.d.ts +0 -1
- package/dist/assertions/deepEqual/deepEqual.identity.js +0 -1
- package/dist/assertions/deepEqual/index.d.ts +0 -1
- package/dist/assertions/deepEqual/index.js +0 -1
- package/dist/assertions/errorAssertions.core.d.ts +0 -1
- package/dist/assertions/errorAssertions.core.js +0 -1
- package/dist/assertions/eventAssertions.core.d.ts +0 -1
- package/dist/assertions/eventAssertions.core.js +0 -1
- package/dist/assertions/httpAssertions.core.d.ts +0 -1
- package/dist/assertions/httpAssertions.core.js +0 -1
- package/dist/assertions/index.d.ts +0 -1
- package/dist/assertions/index.js +0 -1
- package/dist/cleanupManager/cleanupManager.core.d.ts +0 -1
- package/dist/cleanupManager/cleanupManager.core.js +0 -1
- package/dist/cleanupManager/index.d.ts +0 -1
- package/dist/cleanupManager/index.js +0 -1
- package/dist/fixtures/eventFixtures.core.d.ts +0 -1
- package/dist/fixtures/eventFixtures.core.js +0 -1
- package/dist/fixtures/index.d.ts +0 -1
- package/dist/fixtures/index.js +0 -1
- package/dist/fixtures/messageFixtures.core.d.ts +0 -1
- package/dist/fixtures/messageFixtures.core.js +0 -1
- package/dist/httpTestClient/httpTestClient.cookieJar.d.ts +0 -1
- package/dist/httpTestClient/httpTestClient.cookieJar.js +0 -1
- package/dist/httpTestClient/httpTestClient.factory.d.ts +0 -1
- package/dist/httpTestClient/httpTestClient.factory.js +0 -1
- package/dist/httpTestClient/httpTestClient.target.d.ts +0 -1
- package/dist/httpTestClient/httpTestClient.target.js +0 -1
- package/dist/httpTestClient/httpTestClient.type.d.ts +0 -1
- package/dist/httpTestClient/httpTestClient.type.js +0 -1
- package/dist/httpTestClient/httpTestRequest/httpTestRequest.core.d.ts +0 -1
- package/dist/httpTestClient/httpTestRequest/httpTestRequest.core.js +0 -1
- package/dist/httpTestClient/httpTestRequest/httpTestRequest.encode.d.ts +0 -1
- package/dist/httpTestClient/httpTestRequest/httpTestRequest.encode.js +0 -1
- package/dist/httpTestClient/httpTestRequest/httpTestRequest.execute.d.ts +0 -1
- package/dist/httpTestClient/httpTestRequest/httpTestRequest.execute.js +0 -1
- package/dist/httpTestClient/httpTestRequest/httpTestRequest.type.d.ts +0 -1
- package/dist/httpTestClient/httpTestRequest/httpTestRequest.type.js +0 -1
- package/dist/httpTestClient/httpTestRequest/index.d.ts +0 -1
- package/dist/httpTestClient/httpTestRequest/index.js +0 -1
- package/dist/httpTestClient/httpTestResponse/httpTestResponse.core.d.ts +0 -1
- package/dist/httpTestClient/httpTestResponse/httpTestResponse.core.js +0 -1
- package/dist/httpTestClient/httpTestResponse/httpTestResponse.expect.d.ts +0 -1
- package/dist/httpTestClient/httpTestResponse/httpTestResponse.expect.js +0 -1
- package/dist/httpTestClient/httpTestResponse/httpTestResponse.match.d.ts +0 -1
- package/dist/httpTestClient/httpTestResponse/httpTestResponse.match.js +0 -1
- package/dist/httpTestClient/httpTestResponse/httpTestResponse.type.d.ts +0 -1
- package/dist/httpTestClient/httpTestResponse/httpTestResponse.type.js +0 -1
- package/dist/httpTestClient/httpTestResponse/index.d.ts +0 -1
- package/dist/httpTestClient/httpTestResponse/index.js +0 -1
- package/dist/httpTestClient/httpTestTransport/httpTestTransport.fetch.d.ts +0 -1
- package/dist/httpTestClient/httpTestTransport/httpTestTransport.fetch.js +0 -1
- package/dist/httpTestClient/httpTestTransport/httpTestTransport.node.d.ts +0 -1
- package/dist/httpTestClient/httpTestTransport/httpTestTransport.node.js +0 -1
- package/dist/httpTestClient/httpTestTransport/httpTestTransport.server.d.ts +0 -1
- package/dist/httpTestClient/httpTestTransport/httpTestTransport.server.js +0 -1
- package/dist/httpTestClient/httpTestTransport/httpTestTransport.type.d.ts +0 -1
- package/dist/httpTestClient/httpTestTransport/httpTestTransport.type.js +0 -1
- package/dist/httpTestClient/httpTestTransport/httpTestTransport.zudo.d.ts +0 -1
- package/dist/httpTestClient/httpTestTransport/httpTestTransport.zudo.js +0 -1
- package/dist/httpTestClient/httpTestTransport/index.d.ts +0 -1
- package/dist/httpTestClient/httpTestTransport/index.js +0 -1
- package/dist/httpTestClient/index.d.ts +0 -1
- package/dist/httpTestClient/index.js +0 -1
- package/dist/httpTesting/httpRequest/httpRequest.builder.d.ts +0 -1
- package/dist/httpTesting/httpRequest/httpRequest.builder.js +0 -1
- package/dist/httpTesting/httpRequest/httpRequest.factory.d.ts +0 -1
- package/dist/httpTesting/httpRequest/httpRequest.factory.js +0 -1
- package/dist/httpTesting/httpRequest/httpRequest.type.d.ts +0 -1
- package/dist/httpTesting/httpRequest/httpRequest.type.js +0 -1
- package/dist/httpTesting/httpRequest/index.d.ts +0 -1
- package/dist/httpTesting/httpRequest/index.js +0 -1
- package/dist/httpTesting/httpResponse/httpResponse.core.d.ts +0 -1
- package/dist/httpTesting/httpResponse/httpResponse.core.js +0 -1
- package/dist/httpTesting/httpResponse/httpResponse.helpers.d.ts +0 -1
- package/dist/httpTesting/httpResponse/httpResponse.helpers.js +0 -1
- package/dist/httpTesting/httpResponse/httpResponse.type.d.ts +0 -1
- package/dist/httpTesting/httpResponse/httpResponse.type.js +0 -1
- package/dist/httpTesting/httpResponse/index.d.ts +0 -1
- package/dist/httpTesting/httpResponse/index.js +0 -1
- package/dist/httpTesting/index.d.ts +0 -1
- package/dist/httpTesting/index.js +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/mocking/index.d.ts +0 -1
- package/dist/mocking/index.js +0 -1
- package/dist/mocking/mockFn.core.d.ts +13 -3
- package/dist/mocking/mockFn.core.js +21 -45
- package/dist/mocking/mockFn.state.d.ts +38 -0
- package/dist/mocking/mockFn.state.js +38 -0
- package/dist/mocking/spy.core.d.ts +0 -1
- package/dist/mocking/spy.core.js +0 -1
- package/dist/mocking/stub.core.d.ts +0 -1
- package/dist/mocking/stub.core.js +0 -1
- package/dist/spyLogger/index.d.ts +0 -1
- package/dist/spyLogger/index.js +0 -1
- package/dist/spyLogger/spyLogger.context.d.ts +0 -1
- package/dist/spyLogger/spyLogger.context.js +0 -1
- package/dist/spyLogger/spyLogger.core.d.ts +0 -1
- package/dist/spyLogger/spyLogger.core.js +0 -1
- package/dist/spyLogger/spyLogger.recording.d.ts +0 -1
- package/dist/spyLogger/spyLogger.recording.js +0 -1
- package/dist/spyLogger/spyLogger.type.d.ts +0 -1
- package/dist/spyLogger/spyLogger.type.js +0 -1
- package/dist/testApplication/index.d.ts +0 -1
- package/dist/testApplication/index.js +0 -1
- package/dist/testApplication/testApplication.core.d.ts +0 -1
- package/dist/testApplication/testApplication.core.js +0 -1
- package/dist/testClock/index.d.ts +0 -1
- package/dist/testClock/index.js +0 -1
- package/dist/testClock/testClock.core.d.ts +0 -1
- package/dist/testClock/testClock.core.js +0 -1
- package/dist/testConfig/index.d.ts +0 -1
- package/dist/testConfig/index.js +0 -1
- package/dist/testConfig/testConfig.core.d.ts +0 -1
- package/dist/testConfig/testConfig.core.js +0 -1
- package/dist/testContainer/index.d.ts +0 -1
- package/dist/testContainer/index.js +0 -1
- package/dist/testContainer/testContainer.core.d.ts +0 -1
- package/dist/testContainer/testContainer.core.js +0 -1
- package/dist/testContext/index.d.ts +0 -1
- package/dist/testContext/index.js +0 -1
- package/dist/testContext/testContext.core.d.ts +0 -1
- package/dist/testContext/testContext.core.js +0 -1
- package/dist/testContext/testContext.recorder.core.d.ts +0 -1
- package/dist/testContext/testContext.recorder.core.js +0 -1
- package/dist/testContext/testContext.recorder.type.d.ts +0 -1
- package/dist/testContext/testContext.recorder.type.js +0 -1
- package/dist/testEventBus/index.d.ts +0 -1
- package/dist/testEventBus/index.js +0 -1
- package/dist/testEventBus/testEventBus.core.d.ts +0 -1
- package/dist/testEventBus/testEventBus.core.js +0 -1
- package/dist/testEventBus/testEventBus.type.d.ts +0 -1
- package/dist/testEventBus/testEventBus.type.js +0 -1
- package/dist/testMessageBus/index.d.ts +0 -1
- package/dist/testMessageBus/index.js +0 -1
- package/dist/testMessageBus/testMessageBus.core.d.ts +0 -1
- package/dist/testMessageBus/testMessageBus.core.js +0 -1
- package/dist/testQueue/index.d.ts +0 -1
- package/dist/testQueue/index.js +0 -1
- package/dist/testQueue/testQueue.core.d.ts +0 -1
- package/dist/testQueue/testQueue.core.js +0 -1
- package/dist/testQueue/testQueue.type.d.ts +0 -1
- package/dist/testQueue/testQueue.type.js +0 -1
- package/dist/testQueue/testQueue.view.d.ts +0 -1
- package/dist/testQueue/testQueue.view.js +0 -1
- package/dist/testSerialization/index.d.ts +0 -1
- package/dist/testSerialization/index.js +0 -1
- package/dist/testSerialization/serializationAssertions.core.d.ts +0 -1
- package/dist/testSerialization/serializationAssertions.core.js +0 -1
- package/dist/testStorage/index.d.ts +0 -1
- package/dist/testStorage/index.js +0 -1
- package/dist/testStorage/testStorageMemory.core.d.ts +0 -1
- package/dist/testStorage/testStorageMemory.core.js +0 -1
- package/package.json +15 -15
|
@@ -21,4 +21,3 @@ export type DiffWalker = (actual: unknown, expected: unknown, path: string, seen
|
|
|
21
21
|
export declare function diffMap(actual: Map<unknown, unknown>, expected: Map<unknown, unknown>, path: string, seen: Map<object, object>, walk: DiffWalker): Difference | undefined;
|
|
22
22
|
/** Compares two Sets, matching each expected item to one unmatched actual item. */
|
|
23
23
|
export declare function diffSet(actual: Set<unknown>, expected: Set<unknown>, path: string, seen: Map<object, object>, walk: DiffWalker): Difference | undefined;
|
|
24
|
-
//# sourceMappingURL=deepEqual.collections.d.ts.map
|
|
@@ -22,4 +22,3 @@ import type { Difference } from "./deepEqual.describe.js";
|
|
|
22
22
|
export declare function findDifference(actual: unknown, expected: unknown, rootPath?: string): Difference | undefined;
|
|
23
23
|
/** Whether two values are structurally equal. */
|
|
24
24
|
export declare function deepEqual(actual: unknown, expected: unknown): boolean;
|
|
25
|
-
//# sourceMappingURL=deepEqual.core.d.ts.map
|
|
@@ -38,4 +38,3 @@ export declare function assertErrorMetadata(error: unknown, key: string, value:
|
|
|
38
38
|
* Asserts that an error is an instance of a specific class.
|
|
39
39
|
*/
|
|
40
40
|
export declare function assertErrorType<T extends Error>(error: unknown, type: new (...args: never[]) => T): asserts error is T;
|
|
41
|
-
//# sourceMappingURL=errorAssertions.core.d.ts.map
|
|
@@ -53,4 +53,3 @@ export declare function assertEventNotPublished<TPayload>(events: readonly Recor
|
|
|
53
53
|
* Asserts that no message of a given type was dispatched.
|
|
54
54
|
*/
|
|
55
55
|
export declare function assertMessageNotDispatched<TPayload>(messages: readonly RecordedMessage<TPayload>[], type: string): void;
|
|
56
|
-
//# sourceMappingURL=eventAssertions.core.d.ts.map
|
|
@@ -62,4 +62,3 @@ export declare function assertNotFound(response: TestHTTPResponse): void;
|
|
|
62
62
|
* Asserts that a response is 500 Internal Server Error.
|
|
63
63
|
*/
|
|
64
64
|
export declare function assertServerError(response: TestHTTPResponse): void;
|
|
65
|
-
//# sourceMappingURL=httpAssertions.core.d.ts.map
|
|
@@ -6,4 +6,3 @@ export { assertEventNotPublished, assertEventPayload, assertEventPublished, asse
|
|
|
6
6
|
export { assertErrorCode, assertErrorMetadata, assertErrorType, assertRejects, assertThrows, } from "./errorAssertions.core.js";
|
|
7
7
|
export { deepEqual, describeValue, findDifference } from "./deepEqual/index.js";
|
|
8
8
|
export type { Difference } from "./deepEqual/index.js";
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/assertions/index.js
CHANGED
|
@@ -5,4 +5,3 @@ export { assertBadRequest, assertCreated, assertNoContent, assertNotFound, asser
|
|
|
5
5
|
export { assertEventNotPublished, assertEventPayload, assertEventPublished, assertEventType, assertMessageDispatched, assertMessageNotDispatched, assertRecordedEventType, } from "./eventAssertions.core.js";
|
|
6
6
|
export { assertErrorCode, assertErrorMetadata, assertErrorType, assertRejects, assertThrows, } from "./errorAssertions.core.js";
|
|
7
7
|
export { deepEqual, describeValue, findDifference } from "./deepEqual/index.js";
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -50,4 +50,3 @@ export declare function createEventInput<TPayload>(type: string, payload: TPaylo
|
|
|
50
50
|
* @returns Array of test Events.
|
|
51
51
|
*/
|
|
52
52
|
export declare function createEvents<TPayload>(count: number, factory: (index: number) => CreateEventOptions<TPayload>): Event<TPayload>[];
|
|
53
|
-
//# sourceMappingURL=eventFixtures.core.d.ts.map
|
package/dist/fixtures/index.d.ts
CHANGED
|
@@ -7,4 +7,3 @@ export { createEvent, createEventInput, createEvents, } from "./eventFixtures.co
|
|
|
7
7
|
export { createMessage, createMessageInput, createMessages, } from "./messageFixtures.core.js";
|
|
8
8
|
export type { CreateEventOptions } from "./eventFixtures.core.js";
|
|
9
9
|
export type { CreateMessageOptions } from "./messageFixtures.core.js";
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/fixtures/index.js
CHANGED
|
@@ -50,4 +50,3 @@ export declare function createMessageInput<TPayload>(type: string, payload: TPay
|
|
|
50
50
|
* @returns Array of test Messages.
|
|
51
51
|
*/
|
|
52
52
|
export declare function createMessages<TPayload>(count: number, factory: (index: number) => CreateMessageOptions<TPayload>): Message<TPayload>[];
|
|
53
|
-
//# sourceMappingURL=messageFixtures.core.d.ts.map
|
|
@@ -22,4 +22,3 @@ import type { HttpTestClient, HttpTestClientOptions, HttpTestTarget } from "./ht
|
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
24
|
export declare function createHttpTestClient(target: HttpTestTarget, options?: HttpTestClientOptions): HttpTestClient;
|
|
25
|
-
//# sourceMappingURL=httpTestClient.factory.d.ts.map
|
|
@@ -13,4 +13,3 @@ import type { HttpTestClientOptions, HttpTestTarget } from "./httpTestClient.typ
|
|
|
13
13
|
* @throws TypeError when the target is not a supported kind.
|
|
14
14
|
*/
|
|
15
15
|
export declare function resolveHttpTestTransport(target: HttpTestTarget, options?: HttpTestClientOptions): Promise<HttpTestTransport>;
|
|
16
|
-
//# sourceMappingURL=httpTestClient.target.d.ts.map
|
|
@@ -77,4 +77,3 @@ export function resolveHttpTestTransport(target, options = {}) {
|
|
|
77
77
|
}
|
|
78
78
|
return Promise.reject(new TypeError('createHttpTestClient: unsupported target. Pass a base URL, a Node http.Server, a (req, res) listener, a (request: Request) => Response handler, an object with fetch(), or an @zudojs/http HttpServer, NodeHttpAdapter, HttpRouter, HttpMiddlewarePipeline or handler (with kind: "zudo").'));
|
|
79
79
|
}
|
|
80
|
-
//# sourceMappingURL=httpTestClient.target.js.map
|
|
@@ -7,4 +7,3 @@ import type { HttpTestRequest, HttpTestRequestContext } from "./httpTestRequest.
|
|
|
7
7
|
* request is awaited.
|
|
8
8
|
*/
|
|
9
9
|
export declare function createHttpTestRequest(context: HttpTestRequestContext, method: string, path: string): HttpTestRequest;
|
|
10
|
-
//# sourceMappingURL=httpTestRequest.core.d.ts.map
|
|
@@ -23,4 +23,3 @@ export declare function substituteParams(path: string, params: Readonly<Record<s
|
|
|
23
23
|
export declare function appendQuery(path: string, query: HttpTestQuery): string;
|
|
24
24
|
/** Builds a Basic `Authorization` header value. */
|
|
25
25
|
export declare function basicAuthorization(user: string, password: string): string;
|
|
26
|
-
//# sourceMappingURL=httpTestRequest.encode.d.ts.map
|
|
@@ -50,4 +50,3 @@ export interface HttpTestRequest extends PromiseLike<HttpTestResponse> {
|
|
|
50
50
|
expectText(expected: string | RegExp): HttpTestRequest;
|
|
51
51
|
catch<T = never>(onRejected?: ((reason: unknown) => T | PromiseLike<T>) | null): Promise<HttpTestResponse | T>;
|
|
52
52
|
}
|
|
53
|
-
//# sourceMappingURL=httpTestRequest.type.d.ts.map
|
|
@@ -10,4 +10,3 @@ export type { HttpTestRequestState, RegisteredExpectation, } from "./httpTestReq
|
|
|
10
10
|
export { appendQuery, basicAuthorization, encodeBody, normalizePath, substituteParams, } from "./httpTestRequest.encode.js";
|
|
11
11
|
export type { EncodedBody } from "./httpTestRequest.encode.js";
|
|
12
12
|
export type { HttpTestBody, HttpTestQuery, HttpTestQueryValue, HttpTestRequest, HttpTestRequestContext, } from "./httpTestRequest.type.js";
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -7,4 +7,3 @@
|
|
|
7
7
|
export { createHttpTestRequest } from "./httpTestRequest.core.js";
|
|
8
8
|
export { executeHttpTestRequest } from "./httpTestRequest.execute.js";
|
|
9
9
|
export { appendQuery, basicAuthorization, encodeBody, normalizePath, substituteParams, } from "./httpTestRequest.encode.js";
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -12,4 +12,3 @@ export declare function previewBody(text: string): string;
|
|
|
12
12
|
* @param request - The method and path that produced it.
|
|
13
13
|
*/
|
|
14
14
|
export declare function createHttpTestResponse(raw: RawHttpResponse, request: HttpTestRequestSummary): HttpTestResponse;
|
|
15
|
-
//# sourceMappingURL=httpTestResponse.core.d.ts.map
|
|
@@ -16,4 +16,3 @@ export declare function expectHeader(name: string, expected: string | RegExp): H
|
|
|
16
16
|
export declare function expectJson(expected: unknown): HttpTestExpectation;
|
|
17
17
|
/** Expects the text body to equal a string or match a pattern. */
|
|
18
18
|
export declare function expectText(expected: string | RegExp): HttpTestExpectation;
|
|
19
|
-
//# sourceMappingURL=httpTestResponse.expect.d.ts.map
|
|
@@ -12,4 +12,3 @@ import type { Difference } from "../../assertions/index.js";
|
|
|
12
12
|
* @returns The mismatch, or `undefined` when `actual` matches.
|
|
13
13
|
*/
|
|
14
14
|
export declare function findPartialDifference(actual: unknown, expected: unknown, path?: string): Difference | undefined;
|
|
15
|
-
//# sourceMappingURL=httpTestResponse.match.d.ts.map
|
|
@@ -9,4 +9,3 @@ export { createHttpTestResponse, previewBody, } from "./httpTestResponse.core.js
|
|
|
9
9
|
export { findPartialDifference } from "./httpTestResponse.match.js";
|
|
10
10
|
export { expectHeader, expectJson, expectStatus, expectText, } from "./httpTestResponse.expect.js";
|
|
11
11
|
export type { HttpTestExpectation } from "./httpTestResponse.expect.js";
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -7,4 +7,3 @@
|
|
|
7
7
|
export { createHttpTestResponse, previewBody, } from "./httpTestResponse.core.js";
|
|
8
8
|
export { findPartialDifference } from "./httpTestResponse.match.js";
|
|
9
9
|
export { expectHeader, expectJson, expectStatus, expectText, } from "./httpTestResponse.expect.js";
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -12,4 +12,3 @@ import type { FetchHandler, HttpTestTransport } from "./httpTestTransport.type.j
|
|
|
12
12
|
* @param origin - Origin the request URL is resolved against.
|
|
13
13
|
*/
|
|
14
14
|
export declare function createFetchTransport(handler: FetchHandler, origin?: string): HttpTestTransport;
|
|
15
|
-
//# sourceMappingURL=httpTestTransport.fetch.d.ts.map
|
|
@@ -15,4 +15,3 @@ import type { HttpTestTransport, RawHttpRequest, RawHttpResponse } from "./httpT
|
|
|
15
15
|
export declare function sendNodeRequest(origin: string, request: RawHttpRequest): Promise<RawHttpResponse>;
|
|
16
16
|
/** A transport that talks to an already-listening origin and owns nothing. */
|
|
17
17
|
export declare function createOriginTransport(origin: string, close?: () => Promise<void>): HttpTestTransport;
|
|
18
|
-
//# sourceMappingURL=httpTestTransport.node.d.ts.map
|
|
@@ -20,4 +20,3 @@ export declare function formatOrigin(host: string, port: number, secure?: boolea
|
|
|
20
20
|
export declare function createNodeServerTransport(server: NetServer): Promise<HttpTestTransport>;
|
|
21
21
|
/** Transport for a bare `(req, res)` listener, served on an ephemeral port. */
|
|
22
22
|
export declare function createListenerTransport(listener: NodeRequestListener): Promise<HttpTestTransport>;
|
|
23
|
-
//# sourceMappingURL=httpTestTransport.server.d.ts.map
|
|
@@ -22,4 +22,3 @@ export declare function createHandlerTransport(handler: HttpHandler, options?: H
|
|
|
22
22
|
export declare function createRouterTransport(router: HttpRouter, options?: HttpTestAdapterOptions): Promise<HttpTestTransport>;
|
|
23
23
|
/** Transport for an `HttpMiddlewarePipeline`. */
|
|
24
24
|
export declare function createPipelineTransport(pipeline: HttpMiddlewarePipeline, options?: HttpTestAdapterOptions): Promise<HttpTestTransport>;
|
|
25
|
-
//# sourceMappingURL=httpTestTransport.zudo.d.ts.map
|
|
@@ -68,4 +68,3 @@ export function createRouterTransport(router, options = {}) {
|
|
|
68
68
|
export function createPipelineTransport(pipeline, options = {}) {
|
|
69
69
|
return createHandlerTransport((request) => pipeline.execute(request, createResponseContext()), options);
|
|
70
70
|
}
|
|
71
|
-
//# sourceMappingURL=httpTestTransport.zudo.js.map
|
|
@@ -12,4 +12,3 @@ export { createListenerTransport, createNodeServerTransport, formatOrigin, } fro
|
|
|
12
12
|
export { createFetchTransport } from "./httpTestTransport.fetch.js";
|
|
13
13
|
export { createAdapterTransport, createHandlerTransport, createHttpServerTransport, createPipelineTransport, createRouterTransport, } from "./httpTestTransport.zudo.js";
|
|
14
14
|
export type { HttpTestAdapterOptions } from "./httpTestTransport.zudo.js";
|
|
15
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -10,4 +10,3 @@ export { createOriginTransport, sendNodeRequest, } from "./httpTestTransport.nod
|
|
|
10
10
|
export { createListenerTransport, createNodeServerTransport, formatOrigin, } from "./httpTestTransport.server.js";
|
|
11
11
|
export { createFetchTransport } from "./httpTestTransport.fetch.js";
|
|
12
12
|
export { createAdapterTransport, createHandlerTransport, createHttpServerTransport, createPipelineTransport, createRouterTransport, } from "./httpTestTransport.zudo.js";
|
|
13
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -15,4 +15,3 @@ export type { HttpTestBody, HttpTestQuery, HttpTestQueryValue, HttpTestRequest,
|
|
|
15
15
|
export { findPartialDifference } from "./httpTestResponse/index.js";
|
|
16
16
|
export type { HttpTestExpectation, HttpTestRequestSummary, HttpTestResponse, } from "./httpTestResponse/index.js";
|
|
17
17
|
export type { FetchApplication, FetchHandler, HttpTestAdapterOptions, NodeRequestListener, } from "./httpTestTransport/index.js";
|
|
18
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -14,4 +14,3 @@ import type { HTTPMethod, HTTPRequestOptions, TestHTTPRequest } from "./httpRequ
|
|
|
14
14
|
* @returns A TestHTTPRequest instance.
|
|
15
15
|
*/
|
|
16
16
|
export declare function createHTTPRequest(method: HTTPMethod, path: string, options?: HTTPRequestOptions): TestHTTPRequest;
|
|
17
|
-
//# sourceMappingURL=httpRequest.factory.d.ts.map
|
|
@@ -7,4 +7,3 @@
|
|
|
7
7
|
export { createTestHTTPRequest } from "./httpRequest.builder.js";
|
|
8
8
|
export { createHTTPRequest } from "./httpRequest.factory.js";
|
|
9
9
|
export type { HTTPMethod, HTTPRequestBuilder, HTTPRequestOptions, TestHTTPRequest, } from "./httpRequest.type.js";
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -21,4 +21,3 @@ export declare function badRequestResponse(message: string): TestHTTPResponse;
|
|
|
21
21
|
export declare function notFoundResponse(message?: string): TestHTTPResponse;
|
|
22
22
|
/** Creates a 500 Internal Server Error response. */
|
|
23
23
|
export declare function serverErrorResponse(message?: string): TestHTTPResponse;
|
|
24
|
-
//# sourceMappingURL=httpResponse.helpers.d.ts.map
|
|
@@ -38,4 +38,3 @@ export function notFoundResponse(message = "Not Found") {
|
|
|
38
38
|
export function serverErrorResponse(message = "Internal Server Error") {
|
|
39
39
|
return createHTTPResponse(500, { error: message }, { "content-type": "application/json" });
|
|
40
40
|
}
|
|
41
|
-
//# sourceMappingURL=httpResponse.helpers.js.map
|
|
@@ -7,4 +7,3 @@
|
|
|
7
7
|
export { createTestHTTPResponse } from "./httpResponse.core.js";
|
|
8
8
|
export type { HTTPResponseBuilder, TestHTTPResponse, } from "./httpResponse.type.js";
|
|
9
9
|
export { createHTTPResponse, jsonResponse, createdResponse, noContentResponse, badRequestResponse, notFoundResponse, serverErrorResponse, } from "./httpResponse.helpers.js";
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -6,4 +6,3 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export { createTestHTTPResponse } from "./httpResponse.core.js";
|
|
8
8
|
export { createHTTPResponse, jsonResponse, createdResponse, noContentResponse, badRequestResponse, notFoundResponse, serverErrorResponse, } from "./httpResponse.helpers.js";
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -8,4 +8,3 @@ export { createTestHTTPRequest, createHTTPRequest, } from "./httpRequest/index.j
|
|
|
8
8
|
export type { HTTPRequestBuilder, TestHTTPRequest, } from "./httpRequest/index.js";
|
|
9
9
|
export { createTestHTTPResponse, createHTTPResponse, jsonResponse, createdResponse, noContentResponse, badRequestResponse, notFoundResponse, serverErrorResponse, } from "./httpResponse/index.js";
|
|
10
10
|
export type { HTTPResponseBuilder, TestHTTPResponse, } from "./httpResponse/index.js";
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -6,4 +6,3 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export { createTestHTTPRequest, createHTTPRequest, } from "./httpRequest/index.js";
|
|
8
8
|
export { createTestHTTPResponse, createHTTPResponse, jsonResponse, createdResponse, noContentResponse, badRequestResponse, notFoundResponse, serverErrorResponse, } from "./httpResponse/index.js";
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/mocking/index.d.ts
CHANGED
package/dist/mocking/index.js
CHANGED