@frontmcp/testing 1.5.7 → 1.6.1
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/README.md +7 -6
- package/esm/fixtures/index.mjs +2 -0
- package/esm/index.mjs +2 -0
- package/esm/package.json +6 -6
- package/esm/perf/index.mjs +2 -0
- package/fixtures/index.js +2 -0
- package/index.js +2 -0
- package/package.json +6 -6
- package/perf/index.js +2 -0
- package/server/port-registry.d.ts +4 -0
- package/server/port-registry.d.ts.map +1 -1
package/README.md
CHANGED
|
@@ -15,7 +15,8 @@ Peer dependencies: `@frontmcp/sdk`, `jest`, `@jest/globals`. Optional: `@playwri
|
|
|
15
15
|
## Quick Start
|
|
16
16
|
|
|
17
17
|
```ts
|
|
18
|
-
import {
|
|
18
|
+
import { expect, test } from '@frontmcp/testing';
|
|
19
|
+
|
|
19
20
|
import MyServer from './src/main';
|
|
20
21
|
|
|
21
22
|
test.use({ server: MyServer });
|
|
@@ -95,10 +96,10 @@ Apache-2.0 — see [LICENSE](../../LICENSE).
|
|
|
95
96
|
<!-- links -->
|
|
96
97
|
|
|
97
98
|
[docs-overview]: https://docs.agentfront.dev/frontmcp/testing/overview
|
|
98
|
-
[docs-tools]: https://docs.agentfront.dev/frontmcp/testing/
|
|
99
|
-
[docs-tool-ui]: https://docs.agentfront.dev/frontmcp/testing/
|
|
100
|
-
[docs-resources]: https://docs.agentfront.dev/frontmcp/testing/
|
|
101
|
-
[docs-prompts]: https://docs.agentfront.dev/frontmcp/testing/
|
|
99
|
+
[docs-tools]: https://docs.agentfront.dev/frontmcp/testing/api-reference
|
|
100
|
+
[docs-tool-ui]: https://docs.agentfront.dev/frontmcp/testing/api-reference
|
|
101
|
+
[docs-resources]: https://docs.agentfront.dev/frontmcp/testing/api-reference
|
|
102
|
+
[docs-prompts]: https://docs.agentfront.dev/frontmcp/testing/api-reference
|
|
102
103
|
[docs-auth]: https://docs.agentfront.dev/frontmcp/testing/authentication
|
|
103
|
-
[docs-transports]: https://docs.agentfront.dev/frontmcp/testing/
|
|
104
|
+
[docs-transports]: https://docs.agentfront.dev/frontmcp/testing/overview
|
|
104
105
|
[docs-mocking]: https://docs.agentfront.dev/frontmcp/testing/http-mocking
|
package/esm/fixtures/index.mjs
CHANGED
|
@@ -2341,6 +2341,8 @@ var E2E_PORT_RANGES = {
|
|
|
2341
2341
|
"demo-e2e-unix-socket": { start: 50430, size: 10 },
|
|
2342
2342
|
// Distributed E2E tests (50440-50459)
|
|
2343
2343
|
"demo-e2e-distributed": { start: 50440, size: 20 },
|
|
2344
|
+
// Protocol revision E2E tests (50460-50479)
|
|
2345
|
+
"demo-e2e-protocol-20260728": { start: 50460, size: 20 },
|
|
2344
2346
|
// Mock servers and utilities (50900-50999)
|
|
2345
2347
|
"mock-oauth": { start: 50900, size: 10 },
|
|
2346
2348
|
"mock-api": { start: 50910, size: 10 },
|
package/esm/index.mjs
CHANGED
|
@@ -3952,6 +3952,8 @@ var E2E_PORT_RANGES = {
|
|
|
3952
3952
|
"demo-e2e-unix-socket": { start: 50430, size: 10 },
|
|
3953
3953
|
// Distributed E2E tests (50440-50459)
|
|
3954
3954
|
"demo-e2e-distributed": { start: 50440, size: 20 },
|
|
3955
|
+
// Protocol revision E2E tests (50460-50479)
|
|
3956
|
+
"demo-e2e-protocol-20260728": { start: 50460, size: 20 },
|
|
3955
3957
|
// Mock servers and utilities (50900-50999)
|
|
3956
3958
|
"mock-oauth": { start: 50900, size: 10 },
|
|
3957
3959
|
"mock-api": { start: 50910, size: 10 },
|
package/esm/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontmcp/testing",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "E2E testing framework for FrontMCP servers - MCP client, auth mocks, Playwright integration",
|
|
5
5
|
"author": "AgentFront <info@agentfront.dev>",
|
|
6
6
|
"homepage": "https://docs.agentfront.dev",
|
|
@@ -87,9 +87,9 @@
|
|
|
87
87
|
"./esm": null
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
90
|
-
"@frontmcp/lazy-zod": "1.
|
|
91
|
-
"@frontmcp/sdk": "1.
|
|
92
|
-
"@frontmcp/ui": "1.
|
|
90
|
+
"@frontmcp/lazy-zod": "1.6.1",
|
|
91
|
+
"@frontmcp/sdk": "1.6.1",
|
|
92
|
+
"@frontmcp/ui": "1.6.1",
|
|
93
93
|
"@jest/globals": "^29.0.0 || ^30.0.0",
|
|
94
94
|
"@playwright/test": "^1.40.0",
|
|
95
95
|
"jest": "^29.0.0 || ^30.0.0"
|
|
@@ -112,8 +112,8 @@
|
|
|
112
112
|
"node": ">=24.0.0"
|
|
113
113
|
},
|
|
114
114
|
"dependencies": {
|
|
115
|
-
"@frontmcp/protocol": "1.
|
|
116
|
-
"@frontmcp/utils": "1.
|
|
115
|
+
"@frontmcp/protocol": "1.6.1",
|
|
116
|
+
"@frontmcp/utils": "1.6.1",
|
|
117
117
|
"jose": "^6.0.11",
|
|
118
118
|
"tslib": "^2.3.0"
|
|
119
119
|
},
|
package/esm/perf/index.mjs
CHANGED
|
@@ -3098,6 +3098,8 @@ var E2E_PORT_RANGES = {
|
|
|
3098
3098
|
"demo-e2e-unix-socket": { start: 50430, size: 10 },
|
|
3099
3099
|
// Distributed E2E tests (50440-50459)
|
|
3100
3100
|
"demo-e2e-distributed": { start: 50440, size: 20 },
|
|
3101
|
+
// Protocol revision E2E tests (50460-50479)
|
|
3102
|
+
"demo-e2e-protocol-20260728": { start: 50460, size: 20 },
|
|
3101
3103
|
// Mock servers and utilities (50900-50999)
|
|
3102
3104
|
"mock-oauth": { start: 50900, size: 10 },
|
|
3103
3105
|
"mock-api": { start: 50910, size: 10 },
|
package/fixtures/index.js
CHANGED
|
@@ -2357,6 +2357,8 @@ var E2E_PORT_RANGES = {
|
|
|
2357
2357
|
"demo-e2e-unix-socket": { start: 50430, size: 10 },
|
|
2358
2358
|
// Distributed E2E tests (50440-50459)
|
|
2359
2359
|
"demo-e2e-distributed": { start: 50440, size: 20 },
|
|
2360
|
+
// Protocol revision E2E tests (50460-50479)
|
|
2361
|
+
"demo-e2e-protocol-20260728": { start: 50460, size: 20 },
|
|
2360
2362
|
// Mock servers and utilities (50900-50999)
|
|
2361
2363
|
"mock-oauth": { start: 50900, size: 10 },
|
|
2362
2364
|
"mock-api": { start: 50910, size: 10 },
|
package/index.js
CHANGED
|
@@ -4071,6 +4071,8 @@ var E2E_PORT_RANGES = {
|
|
|
4071
4071
|
"demo-e2e-unix-socket": { start: 50430, size: 10 },
|
|
4072
4072
|
// Distributed E2E tests (50440-50459)
|
|
4073
4073
|
"demo-e2e-distributed": { start: 50440, size: 20 },
|
|
4074
|
+
// Protocol revision E2E tests (50460-50479)
|
|
4075
|
+
"demo-e2e-protocol-20260728": { start: 50460, size: 20 },
|
|
4074
4076
|
// Mock servers and utilities (50900-50999)
|
|
4075
4077
|
"mock-oauth": { start: 50900, size: 10 },
|
|
4076
4078
|
"mock-api": { start: 50910, size: 10 },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontmcp/testing",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "E2E testing framework for FrontMCP servers - MCP client, auth mocks, Playwright integration",
|
|
5
5
|
"author": "AgentFront <info@agentfront.dev>",
|
|
6
6
|
"homepage": "https://docs.agentfront.dev",
|
|
@@ -87,9 +87,9 @@
|
|
|
87
87
|
"./esm": null
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
90
|
-
"@frontmcp/lazy-zod": "1.
|
|
91
|
-
"@frontmcp/sdk": "1.
|
|
92
|
-
"@frontmcp/ui": "1.
|
|
90
|
+
"@frontmcp/lazy-zod": "1.6.1",
|
|
91
|
+
"@frontmcp/sdk": "1.6.1",
|
|
92
|
+
"@frontmcp/ui": "1.6.1",
|
|
93
93
|
"@jest/globals": "^29.0.0 || ^30.0.0",
|
|
94
94
|
"@playwright/test": "^1.40.0",
|
|
95
95
|
"jest": "^29.0.0 || ^30.0.0"
|
|
@@ -112,8 +112,8 @@
|
|
|
112
112
|
"node": ">=24.0.0"
|
|
113
113
|
},
|
|
114
114
|
"dependencies": {
|
|
115
|
-
"@frontmcp/protocol": "1.
|
|
116
|
-
"@frontmcp/utils": "1.
|
|
115
|
+
"@frontmcp/protocol": "1.6.1",
|
|
116
|
+
"@frontmcp/utils": "1.6.1",
|
|
117
117
|
"jose": "^6.0.11",
|
|
118
118
|
"tslib": "^2.3.0"
|
|
119
119
|
},
|
package/perf/index.js
CHANGED
|
@@ -3160,6 +3160,8 @@ var E2E_PORT_RANGES = {
|
|
|
3160
3160
|
"demo-e2e-unix-socket": { start: 50430, size: 10 },
|
|
3161
3161
|
// Distributed E2E tests (50440-50459)
|
|
3162
3162
|
"demo-e2e-distributed": { start: 50440, size: 20 },
|
|
3163
|
+
// Protocol revision E2E tests (50460-50479)
|
|
3164
|
+
"demo-e2e-protocol-20260728": { start: 50460, size: 20 },
|
|
3163
3165
|
// Mock servers and utilities (50900-50999)
|
|
3164
3166
|
"mock-oauth": { start: 50900, size: 10 },
|
|
3165
3167
|
"mock-api": { start: 50910, size: 10 },
|
|
@@ -171,6 +171,10 @@ export declare const E2E_PORT_RANGES: {
|
|
|
171
171
|
readonly start: 50440;
|
|
172
172
|
readonly size: 20;
|
|
173
173
|
};
|
|
174
|
+
readonly 'demo-e2e-protocol-20260728': {
|
|
175
|
+
readonly start: 50460;
|
|
176
|
+
readonly size: 20;
|
|
177
|
+
};
|
|
174
178
|
readonly 'mock-oauth': {
|
|
175
179
|
readonly start: 50900;
|
|
176
180
|
readonly size: 10;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"port-registry.d.ts","sourceRoot":"","sources":["../../src/server/port-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAQH;;;;;;GAMG;AACH,eA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