@mastra/server-adapters-test-suite 0.1.4-alpha.1 → 0.1.4-alpha.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @mastra/server-adapters-test-suite
2
2
 
3
+ ## 0.1.4-alpha.2
4
+
5
+ ### Patch Changes
6
+
7
+ - dependencies updates: ([#28417](https://github.com/mastra-ai/mastra/pull/28417))
8
+ - Updated dependency [`@types/node@22.19.15` ↗︎](https://www.npmjs.com/package/@types/node/v/22.19.15) (from `22.20.5`, in `devDependencies`)
9
+ - Updated dependencies [[`ce5d473`](https://github.com/mastra-ai/mastra/commit/ce5d4731eeeb44779748852618b95c5cb6485bed), [`ce5d473`](https://github.com/mastra-ai/mastra/commit/ce5d4731eeeb44779748852618b95c5cb6485bed), [`ce5d473`](https://github.com/mastra-ai/mastra/commit/ce5d4731eeeb44779748852618b95c5cb6485bed), [`0a913e0`](https://github.com/mastra-ai/mastra/commit/0a913e096cb569aea396fa3d9f286cc874179ce8), [`3dfe2eb`](https://github.com/mastra-ai/mastra/commit/3dfe2eb8c3ef3b18d2395a3618b6214488963d05), [`152e380`](https://github.com/mastra-ai/mastra/commit/152e380aca6fcf74f598a158c710c0e755ceb325), [`99e4867`](https://github.com/mastra-ai/mastra/commit/99e486723d3f0063ae70a39c9840daf92a98fa23), [`929a728`](https://github.com/mastra-ai/mastra/commit/929a7281d411ac515e0befb53a5383741b06d484), [`52db47c`](https://github.com/mastra-ai/mastra/commit/52db47cd0d66f891d41a2dbfa36e55b640a30a37), [`7adffbb`](https://github.com/mastra-ai/mastra/commit/7adffbb3df2f734b59648dcf8d461e7af8d1f914), [`f51a29e`](https://github.com/mastra-ai/mastra/commit/f51a29e82b6e2371b5c6aed46141ce20f099c9a9), [`5c0a994`](https://github.com/mastra-ai/mastra/commit/5c0a99438ef82cf5584218f250a023371bab3373), [`7adffbb`](https://github.com/mastra-ai/mastra/commit/7adffbb3df2f734b59648dcf8d461e7af8d1f914), [`823a389`](https://github.com/mastra-ai/mastra/commit/823a3890deb5cf14484fd655c8360df4c41c4aed), [`ff35b8c`](https://github.com/mastra-ai/mastra/commit/ff35b8c3d86136509d31b87fed7f789a572dc1af), [`501b207`](https://github.com/mastra-ai/mastra/commit/501b207b1b6300af44b5b8f40ff33adfe7a9d195), [`d9245dd`](https://github.com/mastra-ai/mastra/commit/d9245dd486349163bfc6468ab45e5600abc6a59e), [`358c711`](https://github.com/mastra-ai/mastra/commit/358c71145d677394ce03a019156bc464afe6cc76), [`dbdfaee`](https://github.com/mastra-ai/mastra/commit/dbdfaee279dab2a5dca31134ca1967eb582e639c), [`fdd2201`](https://github.com/mastra-ai/mastra/commit/fdd22014f6fbfa115eba53cff42063544af2ff41), [`4303017`](https://github.com/mastra-ai/mastra/commit/4303017f393b9c09f692837d8e9e7a19f6539cf4)]:
10
+ - @mastra/core@1.80.0-alpha.4
11
+ - @mastra/mcp@2.6.0-alpha.1
12
+ - @mastra/server@1.80.0-alpha.4
13
+
3
14
  ## 0.1.4-alpha.1
4
15
 
5
16
  ### Patch Changes
package/dist/index.js CHANGED
@@ -32,7 +32,7 @@ import { MCPServerBase } from "@mastra/core/mcp";
32
32
  import { RequestContext } from "@mastra/core/request-context";
33
33
  import { standardSchemaToJSONSchema } from "@mastra/core/schema";
34
34
  import { z as z$2 } from "zod/v4";
35
- //#region src/route-test-utils.ts
35
+ // src/route-test-utils.ts
36
36
  /**
37
37
  * Normalizes a route path to ensure consistent formatting.
38
38
  * - Removes leading/trailing whitespace
@@ -420,8 +420,7 @@ function validateRouteMetadata(route, expected) {
420
420
  if (hasOpenAPI !== expected.hasOpenAPI) throw new Error(`Expected openapi to be ${expected.hasOpenAPI ? "defined" : "undefined"} but got ${hasOpenAPI ? "defined" : "undefined"}`);
421
421
  }
422
422
  }
423
- //#endregion
424
- //#region src/route-test-suite.ts
423
+ // src/route-test-suite.ts
425
424
  /**
426
425
  * Creates a standardized test suite for server adapter routes
427
426
  * Similar to stores/_test-utils pattern
@@ -498,8 +497,7 @@ function createRouteTestSuite(config) {
498
497
  });
499
498
  });
500
499
  }
501
- //#endregion
502
- //#region src/test-helpers.ts
500
+ // src/test-helpers.ts
503
501
  if (process.env.VITEST) {
504
502
  vi.mock("@mastra/core/vector");
505
503
  vi.mock("zod", async (importOriginal) => {
@@ -1774,8 +1772,7 @@ async function consumeSSEStream(stream) {
1774
1772
  }
1775
1773
  return chunks;
1776
1774
  }
1777
- //#endregion
1778
- //#region src/route-adapter-test-suite.ts
1775
+ // src/route-adapter-test-suite.ts
1779
1776
  /**
1780
1777
  * Creates a standardized integration test suite for server adapters (Express/Hono)
1781
1778
  *
@@ -3013,8 +3010,7 @@ function createRouteAdapterTestSuite(config) {
3013
3010
  });
3014
3011
  });
3015
3012
  }
3016
- //#endregion
3017
- //#region src/durable-disconnect-test-suite.ts
3013
+ // src/durable-disconnect-test-suite.ts
3018
3014
  function deferred() {
3019
3015
  let resolve;
3020
3016
  return {
@@ -3285,8 +3281,7 @@ function createDurableDisconnectTestSuite(config) {
3285
3281
  }
3286
3282
  });
3287
3283
  }
3288
- //#endregion
3289
- //#region src/mcp-route-test-suite.ts
3284
+ // src/mcp-route-test-suite.ts
3290
3285
  /**
3291
3286
  * Creates a standardized integration test suite for MCP registry routes
3292
3287
  *
@@ -3538,8 +3533,7 @@ function createMCPRouteTestSuite(config) {
3538
3533
  });
3539
3534
  });
3540
3535
  }
3541
- //#endregion
3542
- //#region src/native-mcp-fixture.ts
3536
+ // src/native-mcp-fixture.ts
3543
3537
  const unavailable = (feature) => async () => {
3544
3538
  throw new Error(`${feature} is not available on a 2026-07-28 server`);
3545
3539
  };
@@ -3691,8 +3685,7 @@ var NativeMCPFixture = class extends MCPServerBase {
3691
3685
  return { resources: [] };
3692
3686
  }
3693
3687
  };
3694
- //#endregion
3695
- //#region src/mcp-transport-test-suite.ts
3688
+ // src/mcp-transport-test-suite.ts
3696
3689
  /**
3697
3690
  * Creates a standardized integration test suite for MCP transport routes
3698
3691
  *
@@ -4142,8 +4135,7 @@ function createMCPTransportTestSuite(config) {
4142
4135
  });
4143
4136
  });
4144
4137
  }
4145
- //#endregion
4146
- //#region src/multipart-test-suite.ts
4138
+ // src/multipart-test-suite.ts
4147
4139
  /**
4148
4140
  * Creates a standardized test suite for multipart/form-data handling in server adapters.
4149
4141
  *
@@ -4466,8 +4458,7 @@ function createMultipartTestSuite(config) {
4466
4458
  });
4467
4459
  });
4468
4460
  }
4469
- //#endregion
4470
- //#region src/http-logging-test-suite.ts
4461
+ // src/http-logging-test-suite.ts
4471
4462
  /**
4472
4463
  * Creates a standardized test suite for HTTP logging across all server adapters.
4473
4464
  *
@@ -4655,8 +4646,7 @@ function createHttpLoggingTestSuite(config) {
4655
4646
  });
4656
4647
  });
4657
4648
  }
4658
- //#endregion
4659
- //#region src/body-limit-test-suite.ts
4649
+ // src/body-limit-test-suite.ts
4660
4650
  /**
4661
4651
  * Creates a standardized body-limit test suite for server adapters.
4662
4652
  *
@@ -4856,8 +4846,7 @@ function createBodyLimitTestSuite(config) {
4856
4846
  });
4857
4847
  });
4858
4848
  }
4859
- //#endregion
4860
- //#region src/custom-route-fga-test-suite.ts
4849
+ // src/custom-route-fga-test-suite.ts
4861
4850
  /**
4862
4851
  * Custom `registerApiRoute()` handlers read path params from the URL. FGA must
4863
4852
  * authorize that same resource, so a query or body field named like a path
@@ -4947,7 +4936,6 @@ function createCustomRouteFGATestSuite(config) {
4947
4936
  });
4948
4937
  });
4949
4938
  }
4950
- //#endregion
4951
4939
  export { consumeSSEStream, createBodyLimitTestSuite, createCustomRouteFGATestSuite, createDefaultTestContext, createDurableDisconnectTestSuite, createHttpLoggingTestSuite, createMCPRouteTestSuite, createMCPTransportTestSuite, createMultipartTestSuite, createRouteAdapterTestSuite, createStreamWithSensitiveData, createStreamWithUnserializableChunk, expectSerializedStreamChunks };
4952
4940
 
4953
4941
  //# sourceMappingURL=index.js.map