@zudojs/testing 1.2.4 → 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.
Files changed (161) hide show
  1. package/dist/assertions/deepEqual/deepEqual.collections.d.ts +0 -1
  2. package/dist/assertions/deepEqual/deepEqual.collections.js +0 -1
  3. package/dist/assertions/deepEqual/deepEqual.core.d.ts +0 -1
  4. package/dist/assertions/deepEqual/deepEqual.core.js +0 -1
  5. package/dist/assertions/deepEqual/deepEqual.describe.d.ts +0 -1
  6. package/dist/assertions/deepEqual/deepEqual.describe.js +0 -1
  7. package/dist/assertions/deepEqual/deepEqual.identity.d.ts +0 -1
  8. package/dist/assertions/deepEqual/deepEqual.identity.js +0 -1
  9. package/dist/assertions/deepEqual/index.d.ts +0 -1
  10. package/dist/assertions/deepEqual/index.js +0 -1
  11. package/dist/assertions/errorAssertions.core.d.ts +0 -1
  12. package/dist/assertions/errorAssertions.core.js +0 -1
  13. package/dist/assertions/eventAssertions.core.d.ts +0 -1
  14. package/dist/assertions/eventAssertions.core.js +0 -1
  15. package/dist/assertions/httpAssertions.core.d.ts +0 -1
  16. package/dist/assertions/httpAssertions.core.js +0 -1
  17. package/dist/assertions/index.d.ts +0 -1
  18. package/dist/assertions/index.js +0 -1
  19. package/dist/cleanupManager/cleanupManager.core.d.ts +0 -1
  20. package/dist/cleanupManager/cleanupManager.core.js +0 -1
  21. package/dist/cleanupManager/index.d.ts +0 -1
  22. package/dist/cleanupManager/index.js +0 -1
  23. package/dist/fixtures/eventFixtures.core.d.ts +0 -1
  24. package/dist/fixtures/eventFixtures.core.js +0 -1
  25. package/dist/fixtures/index.d.ts +0 -1
  26. package/dist/fixtures/index.js +0 -1
  27. package/dist/fixtures/messageFixtures.core.d.ts +0 -1
  28. package/dist/fixtures/messageFixtures.core.js +0 -1
  29. package/dist/httpTestClient/httpTestClient.cookieJar.d.ts +0 -1
  30. package/dist/httpTestClient/httpTestClient.cookieJar.js +0 -1
  31. package/dist/httpTestClient/httpTestClient.factory.d.ts +0 -1
  32. package/dist/httpTestClient/httpTestClient.factory.js +0 -1
  33. package/dist/httpTestClient/httpTestClient.target.d.ts +0 -1
  34. package/dist/httpTestClient/httpTestClient.target.js +0 -1
  35. package/dist/httpTestClient/httpTestClient.type.d.ts +0 -1
  36. package/dist/httpTestClient/httpTestClient.type.js +0 -1
  37. package/dist/httpTestClient/httpTestRequest/httpTestRequest.core.d.ts +0 -1
  38. package/dist/httpTestClient/httpTestRequest/httpTestRequest.core.js +0 -1
  39. package/dist/httpTestClient/httpTestRequest/httpTestRequest.encode.d.ts +0 -1
  40. package/dist/httpTestClient/httpTestRequest/httpTestRequest.encode.js +0 -1
  41. package/dist/httpTestClient/httpTestRequest/httpTestRequest.execute.d.ts +0 -1
  42. package/dist/httpTestClient/httpTestRequest/httpTestRequest.execute.js +0 -1
  43. package/dist/httpTestClient/httpTestRequest/httpTestRequest.type.d.ts +0 -1
  44. package/dist/httpTestClient/httpTestRequest/httpTestRequest.type.js +0 -1
  45. package/dist/httpTestClient/httpTestRequest/index.d.ts +0 -1
  46. package/dist/httpTestClient/httpTestRequest/index.js +0 -1
  47. package/dist/httpTestClient/httpTestResponse/httpTestResponse.core.d.ts +0 -1
  48. package/dist/httpTestClient/httpTestResponse/httpTestResponse.core.js +0 -1
  49. package/dist/httpTestClient/httpTestResponse/httpTestResponse.expect.d.ts +0 -1
  50. package/dist/httpTestClient/httpTestResponse/httpTestResponse.expect.js +0 -1
  51. package/dist/httpTestClient/httpTestResponse/httpTestResponse.match.d.ts +0 -1
  52. package/dist/httpTestClient/httpTestResponse/httpTestResponse.match.js +0 -1
  53. package/dist/httpTestClient/httpTestResponse/httpTestResponse.type.d.ts +0 -1
  54. package/dist/httpTestClient/httpTestResponse/httpTestResponse.type.js +0 -1
  55. package/dist/httpTestClient/httpTestResponse/index.d.ts +0 -1
  56. package/dist/httpTestClient/httpTestResponse/index.js +0 -1
  57. package/dist/httpTestClient/httpTestTransport/httpTestTransport.fetch.d.ts +0 -1
  58. package/dist/httpTestClient/httpTestTransport/httpTestTransport.fetch.js +0 -1
  59. package/dist/httpTestClient/httpTestTransport/httpTestTransport.node.d.ts +0 -1
  60. package/dist/httpTestClient/httpTestTransport/httpTestTransport.node.js +0 -1
  61. package/dist/httpTestClient/httpTestTransport/httpTestTransport.server.d.ts +0 -1
  62. package/dist/httpTestClient/httpTestTransport/httpTestTransport.server.js +0 -1
  63. package/dist/httpTestClient/httpTestTransport/httpTestTransport.type.d.ts +0 -1
  64. package/dist/httpTestClient/httpTestTransport/httpTestTransport.type.js +0 -1
  65. package/dist/httpTestClient/httpTestTransport/httpTestTransport.zudo.d.ts +0 -1
  66. package/dist/httpTestClient/httpTestTransport/httpTestTransport.zudo.js +0 -1
  67. package/dist/httpTestClient/httpTestTransport/index.d.ts +0 -1
  68. package/dist/httpTestClient/httpTestTransport/index.js +0 -1
  69. package/dist/httpTestClient/index.d.ts +0 -1
  70. package/dist/httpTestClient/index.js +0 -1
  71. package/dist/httpTesting/httpRequest/httpRequest.builder.d.ts +0 -1
  72. package/dist/httpTesting/httpRequest/httpRequest.builder.js +0 -1
  73. package/dist/httpTesting/httpRequest/httpRequest.factory.d.ts +0 -1
  74. package/dist/httpTesting/httpRequest/httpRequest.factory.js +0 -1
  75. package/dist/httpTesting/httpRequest/httpRequest.type.d.ts +0 -1
  76. package/dist/httpTesting/httpRequest/httpRequest.type.js +0 -1
  77. package/dist/httpTesting/httpRequest/index.d.ts +0 -1
  78. package/dist/httpTesting/httpRequest/index.js +0 -1
  79. package/dist/httpTesting/httpResponse/httpResponse.core.d.ts +0 -1
  80. package/dist/httpTesting/httpResponse/httpResponse.core.js +0 -1
  81. package/dist/httpTesting/httpResponse/httpResponse.helpers.d.ts +0 -1
  82. package/dist/httpTesting/httpResponse/httpResponse.helpers.js +0 -1
  83. package/dist/httpTesting/httpResponse/httpResponse.type.d.ts +0 -1
  84. package/dist/httpTesting/httpResponse/httpResponse.type.js +0 -1
  85. package/dist/httpTesting/httpResponse/index.d.ts +0 -1
  86. package/dist/httpTesting/httpResponse/index.js +0 -1
  87. package/dist/httpTesting/index.d.ts +0 -1
  88. package/dist/httpTesting/index.js +0 -1
  89. package/dist/index.d.ts +0 -1
  90. package/dist/index.js +0 -1
  91. package/dist/mocking/index.d.ts +0 -1
  92. package/dist/mocking/index.js +0 -1
  93. package/dist/mocking/mockFn.core.d.ts +13 -3
  94. package/dist/mocking/mockFn.core.js +21 -45
  95. package/dist/mocking/mockFn.state.d.ts +38 -0
  96. package/dist/mocking/mockFn.state.js +38 -0
  97. package/dist/mocking/spy.core.d.ts +0 -1
  98. package/dist/mocking/spy.core.js +0 -1
  99. package/dist/mocking/stub.core.d.ts +0 -1
  100. package/dist/mocking/stub.core.js +0 -1
  101. package/dist/spyLogger/index.d.ts +0 -1
  102. package/dist/spyLogger/index.js +0 -1
  103. package/dist/spyLogger/spyLogger.context.d.ts +0 -1
  104. package/dist/spyLogger/spyLogger.context.js +0 -1
  105. package/dist/spyLogger/spyLogger.core.d.ts +0 -1
  106. package/dist/spyLogger/spyLogger.core.js +0 -1
  107. package/dist/spyLogger/spyLogger.recording.d.ts +0 -1
  108. package/dist/spyLogger/spyLogger.recording.js +0 -1
  109. package/dist/spyLogger/spyLogger.type.d.ts +0 -1
  110. package/dist/spyLogger/spyLogger.type.js +0 -1
  111. package/dist/testApplication/index.d.ts +0 -1
  112. package/dist/testApplication/index.js +0 -1
  113. package/dist/testApplication/testApplication.core.d.ts +0 -1
  114. package/dist/testApplication/testApplication.core.js +0 -1
  115. package/dist/testClock/index.d.ts +0 -1
  116. package/dist/testClock/index.js +0 -1
  117. package/dist/testClock/testClock.core.d.ts +0 -1
  118. package/dist/testClock/testClock.core.js +0 -1
  119. package/dist/testConfig/index.d.ts +0 -1
  120. package/dist/testConfig/index.js +0 -1
  121. package/dist/testConfig/testConfig.core.d.ts +0 -1
  122. package/dist/testConfig/testConfig.core.js +0 -1
  123. package/dist/testContainer/index.d.ts +0 -1
  124. package/dist/testContainer/index.js +0 -1
  125. package/dist/testContainer/testContainer.core.d.ts +0 -1
  126. package/dist/testContainer/testContainer.core.js +0 -1
  127. package/dist/testContext/index.d.ts +0 -1
  128. package/dist/testContext/index.js +0 -1
  129. package/dist/testContext/testContext.core.d.ts +0 -1
  130. package/dist/testContext/testContext.core.js +0 -1
  131. package/dist/testContext/testContext.recorder.core.d.ts +0 -1
  132. package/dist/testContext/testContext.recorder.core.js +0 -1
  133. package/dist/testContext/testContext.recorder.type.d.ts +0 -1
  134. package/dist/testContext/testContext.recorder.type.js +0 -1
  135. package/dist/testEventBus/index.d.ts +0 -1
  136. package/dist/testEventBus/index.js +0 -1
  137. package/dist/testEventBus/testEventBus.core.d.ts +0 -1
  138. package/dist/testEventBus/testEventBus.core.js +0 -1
  139. package/dist/testEventBus/testEventBus.type.d.ts +0 -1
  140. package/dist/testEventBus/testEventBus.type.js +0 -1
  141. package/dist/testMessageBus/index.d.ts +0 -1
  142. package/dist/testMessageBus/index.js +0 -1
  143. package/dist/testMessageBus/testMessageBus.core.d.ts +0 -1
  144. package/dist/testMessageBus/testMessageBus.core.js +0 -1
  145. package/dist/testQueue/index.d.ts +0 -1
  146. package/dist/testQueue/index.js +0 -1
  147. package/dist/testQueue/testQueue.core.d.ts +0 -1
  148. package/dist/testQueue/testQueue.core.js +0 -1
  149. package/dist/testQueue/testQueue.type.d.ts +0 -1
  150. package/dist/testQueue/testQueue.type.js +0 -1
  151. package/dist/testQueue/testQueue.view.d.ts +0 -1
  152. package/dist/testQueue/testQueue.view.js +0 -1
  153. package/dist/testSerialization/index.d.ts +0 -1
  154. package/dist/testSerialization/index.js +0 -1
  155. package/dist/testSerialization/serializationAssertions.core.d.ts +0 -1
  156. package/dist/testSerialization/serializationAssertions.core.js +0 -1
  157. package/dist/testStorage/index.d.ts +0 -1
  158. package/dist/testStorage/index.js +0 -1
  159. package/dist/testStorage/testStorageMemory.core.d.ts +0 -1
  160. package/dist/testStorage/testStorageMemory.core.js +0 -1
  161. 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
@@ -78,4 +78,3 @@ export function diffSet(actual, expected, path, seen, walk) {
78
78
  }
79
79
  return undefined;
80
80
  }
81
- //# sourceMappingURL=deepEqual.collections.js.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
@@ -147,4 +147,3 @@ export function findDifference(actual, expected, rootPath = "value") {
147
147
  export function deepEqual(actual, expected) {
148
148
  return findDifference(actual, expected) === undefined;
149
149
  }
150
- //# sourceMappingURL=deepEqual.core.js.map
@@ -16,4 +16,3 @@ export interface Difference {
16
16
  }
17
17
  /** Renders a value for an assertion message without throwing. */
18
18
  export declare function describeValue(value: unknown, depth?: number): string;
19
- //# sourceMappingURL=deepEqual.describe.d.ts.map
@@ -56,4 +56,3 @@ export function describeValue(value, depth = 0) {
56
56
  .map((key) => ` ${key}: ${describeValue(value[key], depth + 1)}`)
57
57
  .join(",")}${keys.length > 6 ? ", …" : ""} }`;
58
58
  }
59
- //# sourceMappingURL=deepEqual.describe.js.map
@@ -30,4 +30,3 @@ export declare function errorCauses(actual: object, expected: object): {
30
30
  readonly actual: unknown;
31
31
  readonly expected: unknown;
32
32
  } | undefined;
33
- //# sourceMappingURL=deepEqual.identity.d.ts.map
@@ -98,4 +98,3 @@ export function errorCauses(actual, expected) {
98
98
  return undefined;
99
99
  return { actual: actual.cause, expected: expected.cause };
100
100
  }
101
- //# sourceMappingURL=deepEqual.identity.js.map
@@ -10,4 +10,3 @@
10
10
  export { deepEqual, findDifference } from "./deepEqual.core.js";
11
11
  export { describeValue } from "./deepEqual.describe.js";
12
12
  export type { Difference } from "./deepEqual.describe.js";
13
- //# sourceMappingURL=index.d.ts.map
@@ -9,4 +9,3 @@
9
9
  */
10
10
  export { deepEqual, findDifference } from "./deepEqual.core.js";
11
11
  export { describeValue } from "./deepEqual.describe.js";
12
- //# sourceMappingURL=index.js.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
@@ -104,4 +104,3 @@ export function assertErrorType(error, type) {
104
104
  throw new Error(`Expected error to be a ${type.name}, got ${error instanceof Error ? error.constructor.name : typeof error}.`);
105
105
  }
106
106
  }
107
- //# sourceMappingURL=errorAssertions.core.js.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
@@ -82,4 +82,3 @@ export function assertMessageNotDispatched(messages, type) {
82
82
  throw new Error(`Expected message "${type}" not to be dispatched, but it was dispatched ${found.length} time(s).`);
83
83
  }
84
84
  }
85
- //# sourceMappingURL=eventAssertions.core.js.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
@@ -99,4 +99,3 @@ export function assertNotFound(response) {
99
99
  export function assertServerError(response) {
100
100
  assertResponseStatus(response, 500);
101
101
  }
102
- //# sourceMappingURL=httpAssertions.core.js.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
@@ -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
@@ -55,4 +55,3 @@ export interface CleanupManager {
55
55
  * @returns A new CleanupManager instance.
56
56
  */
57
57
  export declare function createCleanupManager(options?: CleanupManagerOptions): CleanupManager;
58
- //# sourceMappingURL=cleanupManager.core.d.ts.map
@@ -74,4 +74,3 @@ export function createCleanupManager(options = {}) {
74
74
  dispose,
75
75
  };
76
76
  }
77
- //# sourceMappingURL=cleanupManager.core.js.map
@@ -5,4 +5,3 @@
5
5
  */
6
6
  export { createCleanupManager } from "./cleanupManager.core.js";
7
7
  export type { CleanupEntry, CleanupManager, CleanupManagerOptions, } from "./cleanupManager.core.js";
8
- //# sourceMappingURL=index.d.ts.map
@@ -4,4 +4,3 @@
4
4
  * Registers and executes resource cleanup functions in reverse order.
5
5
  */
6
6
  export { createCleanupManager } from "./cleanupManager.core.js";
7
- //# 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
@@ -56,4 +56,3 @@ export function createEventInput(type, payload, metadata) {
56
56
  export function createEvents(count, factory) {
57
57
  return Array.from({ length: count }, (_, i) => createEvent(factory(i)));
58
58
  }
59
- //# sourceMappingURL=eventFixtures.core.js.map
@@ -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
@@ -5,4 +5,3 @@
5
5
  */
6
6
  export { createEvent, createEventInput, createEvents, } from "./eventFixtures.core.js";
7
7
  export { createMessage, createMessageInput, createMessages, } from "./messageFixtures.core.js";
8
- //# sourceMappingURL=index.js.map
@@ -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
@@ -56,4 +56,3 @@ export function createMessageInput(type, payload, metadata) {
56
56
  export function createMessages(count, factory) {
57
57
  return Array.from({ length: count }, (_, i) => createMessage(factory(i)));
58
58
  }
59
- //# sourceMappingURL=messageFixtures.core.js.map
@@ -27,4 +27,3 @@ export interface HttpTestCookieJar {
27
27
  }
28
28
  /** Creates an empty cookie jar. */
29
29
  export declare function createHttpTestCookieJar(): HttpTestCookieJar;
30
- //# sourceMappingURL=httpTestClient.cookieJar.d.ts.map
@@ -104,4 +104,3 @@ export function createHttpTestCookieJar() {
104
104
  },
105
105
  };
106
106
  }
107
- //# sourceMappingURL=httpTestClient.cookieJar.js.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
@@ -81,4 +81,3 @@ export function createHttpTestClient(target, options = {}) {
81
81
  },
82
82
  };
83
83
  }
84
- //# sourceMappingURL=httpTestClient.factory.js.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
@@ -71,4 +71,3 @@ export interface HttpTestClient {
71
71
  readonly close: () => Promise<void>;
72
72
  readonly closed: boolean;
73
73
  }
74
- //# sourceMappingURL=httpTestClient.type.d.ts.map
@@ -2,4 +2,3 @@
2
2
  * @zudojs/testing — HTTP test client types.
3
3
  */
4
4
  export {};
5
- //# sourceMappingURL=httpTestClient.type.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
@@ -94,4 +94,3 @@ export function createHttpTestRequest(context, method, path) {
94
94
  };
95
95
  return request;
96
96
  }
97
- //# sourceMappingURL=httpTestRequest.core.js.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
@@ -70,4 +70,3 @@ export function appendQuery(path, query) {
70
70
  export function basicAuthorization(user, password) {
71
71
  return `Basic ${Buffer.from(`${user}:${password}`, "utf8").toString("base64")}`;
72
72
  }
73
- //# sourceMappingURL=httpTestRequest.encode.js.map
@@ -23,4 +23,3 @@ export interface HttpTestRequestState {
23
23
  * order.
24
24
  */
25
25
  export declare function executeHttpTestRequest(context: HttpTestRequestContext, state: HttpTestRequestState): Promise<HttpTestResponse>;
26
- //# sourceMappingURL=httpTestRequest.execute.d.ts.map
@@ -55,4 +55,3 @@ export async function executeHttpTestRequest(context, state) {
55
55
  }
56
56
  return response;
57
57
  }
58
- //# sourceMappingURL=httpTestRequest.execute.js.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
@@ -2,4 +2,3 @@
2
2
  * @zudojs/testing — fluent HTTP test request types.
3
3
  */
4
4
  export {};
5
- //# sourceMappingURL=httpTestRequest.type.js.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
@@ -68,4 +68,3 @@ export function createHttpTestResponse(raw, request) {
68
68
  },
69
69
  });
70
70
  }
71
- //# sourceMappingURL=httpTestResponse.core.js.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
@@ -71,4 +71,3 @@ export function expectText(expected) {
71
71
  }
72
72
  };
73
73
  }
74
- //# sourceMappingURL=httpTestResponse.expect.js.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
@@ -49,4 +49,3 @@ export function findPartialDifference(actual, expected, path = "body") {
49
49
  }
50
50
  return undefined;
51
51
  }
52
- //# sourceMappingURL=httpTestResponse.match.js.map
@@ -41,4 +41,3 @@ export interface HttpTestResponse extends TestHTTPResponse {
41
41
  /** Parses the body as JSON; throws a readable error when it is not JSON. */
42
42
  json<T = unknown>(): T;
43
43
  }
44
- //# sourceMappingURL=httpTestResponse.type.d.ts.map
@@ -2,4 +2,3 @@
2
2
  * @zudojs/testing — HTTP test client response type.
3
3
  */
4
4
  export {};
5
- //# sourceMappingURL=httpTestResponse.type.js.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
@@ -62,4 +62,3 @@ export function createFetchTransport(handler, origin = "http://localhost") {
62
62
  };
63
63
  return { origin, send, close: async () => undefined };
64
64
  }
65
- //# sourceMappingURL=httpTestTransport.fetch.js.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
@@ -91,4 +91,3 @@ export function createOriginTransport(origin, close = async () => undefined) {
91
91
  close,
92
92
  };
93
93
  }
94
- //# sourceMappingURL=httpTestTransport.node.js.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
@@ -73,4 +73,3 @@ export function createListenerTransport(listener) {
73
73
  });
74
74
  }));
75
75
  }
76
- //# sourceMappingURL=httpTestTransport.server.js.map
@@ -43,4 +43,3 @@ export interface FetchApplication {
43
43
  }
44
44
  /** A Node `http.createServer` request listener. */
45
45
  export type NodeRequestListener = (request: IncomingMessage, response: ServerResponse) => void | Promise<void>;
46
- //# sourceMappingURL=httpTestTransport.type.d.ts.map
@@ -6,4 +6,3 @@
6
6
  * `@zudojs/http` server/router/adapter) is reduced to one of these.
7
7
  */
8
8
  export {};
9
- //# sourceMappingURL=httpTestTransport.type.js.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
@@ -10,4 +10,3 @@
10
10
  export { createHttpTestClient } from "./httpTestClient.factory.js";
11
11
  export { createHttpTestCookieJar } from "./httpTestClient.cookieJar.js";
12
12
  export { findPartialDifference } from "./httpTestResponse/index.js";
13
- //# sourceMappingURL=index.js.map
@@ -10,4 +10,3 @@ import type { HTTPRequestBuilder } from "./httpRequest.type.js";
10
10
  * @returns An HTTPRequestBuilder instance.
11
11
  */
12
12
  export declare function createTestHTTPRequest(): HTTPRequestBuilder;
13
- //# sourceMappingURL=httpRequest.builder.d.ts.map
@@ -61,4 +61,3 @@ export function createTestHTTPRequest() {
61
61
  };
62
62
  return builder;
63
63
  }
64
- //# sourceMappingURL=httpRequest.builder.js.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
@@ -22,4 +22,3 @@ export function createHTTPRequest(method, path, options = {}) {
22
22
  params: { ...options.params },
23
23
  };
24
24
  }
25
- //# sourceMappingURL=httpRequest.factory.js.map
@@ -51,4 +51,3 @@ export interface HTTPRequestOptions {
51
51
  readonly body?: unknown;
52
52
  readonly params?: Record<string, string>;
53
53
  }
54
- //# sourceMappingURL=httpRequest.type.d.ts.map
@@ -2,4 +2,3 @@
2
2
  * @zudojs/testing — HTTP request test double types.
3
3
  */
4
4
  export {};
5
- //# sourceMappingURL=httpRequest.type.js.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
@@ -6,4 +6,3 @@
6
6
  */
7
7
  export { createTestHTTPRequest } from "./httpRequest.builder.js";
8
8
  export { createHTTPRequest } from "./httpRequest.factory.js";
9
- //# sourceMappingURL=index.js.map
@@ -17,4 +17,3 @@ import type { HTTPResponseBuilder } from "./httpResponse.type.js";
17
17
  * ```
18
18
  */
19
19
  export declare function createTestHTTPResponse(): HTTPResponseBuilder;
20
- //# sourceMappingURL=httpResponse.core.d.ts.map
@@ -74,4 +74,3 @@ export function createTestHTTPResponse() {
74
74
  };
75
75
  return builder;
76
76
  }
77
- //# sourceMappingURL=httpResponse.core.js.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
@@ -22,4 +22,3 @@ export interface HTTPResponseBuilder {
22
22
  empty: () => HTTPResponseBuilder;
23
23
  build: () => TestHTTPResponse;
24
24
  }
25
- //# sourceMappingURL=httpResponse.type.d.ts.map
@@ -4,4 +4,3 @@
4
4
  * Types for test HTTP responses and response builders.
5
5
  */
6
6
  export {};
7
- //# sourceMappingURL=httpResponse.type.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
@@ -22,4 +22,3 @@ export * from "./assertions/index.js";
22
22
  export * from "./testApplication/index.js";
23
23
  export * from "./testSerialization/index.js";
24
24
  export * from "./testStorage/index.js";
25
- //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -22,4 +22,3 @@ export * from "./assertions/index.js";
22
22
  export * from "./testApplication/index.js";
23
23
  export * from "./testSerialization/index.js";
24
24
  export * from "./testStorage/index.js";
25
- //# sourceMappingURL=index.js.map
@@ -8,4 +8,3 @@ export { createSpyFn, createSpyMethod } from "./spy.core.js";
8
8
  export { createStub, createStubClass } from "./stub.core.js";
9
9
  export type { MockFn } from "./mockFn.core.js";
10
10
  export type { SpyFn, SpyMethod } from "./spy.core.js";
11
- //# sourceMappingURL=index.d.ts.map
@@ -6,4 +6,3 @@
6
6
  export { createMockFn } from "./mockFn.core.js";
7
7
  export { createSpyFn, createSpyMethod } from "./spy.core.js";
8
8
  export { createStub, createStubClass } from "./stub.core.js";
9
- //# sourceMappingURL=index.js.map