@frontmcp/testing 1.11.2 → 1.12.0-rc.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 +11 -1
- package/assertions/mcp-assertions.d.ts +2 -2
- package/assertions/mcp-assertions.d.ts.map +1 -1
- package/auth/mock-cimd-server.d.ts +12 -2
- package/auth/mock-cimd-server.d.ts.map +1 -1
- package/client/index.d.ts +1 -1
- package/client/index.d.ts.map +1 -1
- package/client/mcp-test-client.builder.d.ts +23 -4
- package/client/mcp-test-client.builder.d.ts.map +1 -1
- package/client/mcp-test-client.d.ts +46 -1
- package/client/mcp-test-client.d.ts.map +1 -1
- package/client/mcp-test-client.types.d.ts +20 -3
- package/client/mcp-test-client.types.d.ts.map +1 -1
- package/esm/fixtures/index.mjs +2 -2
- package/esm/index.mjs +5 -5
- package/esm/package.json +6 -6
- package/esm/perf/index.mjs +1 -1
- package/fixtures/fixture-types.d.ts +13 -0
- package/fixtures/fixture-types.d.ts.map +1 -1
- package/fixtures/index.js +3 -3
- package/fixtures/test-fixture.d.ts.map +1 -1
- package/index.d.ts +3 -1
- package/index.d.ts.map +1 -1
- package/index.js +7 -7
- package/interceptor/interceptor-chain.d.ts +1 -1
- package/interceptor/interceptor-chain.d.ts.map +1 -1
- package/interceptor/mock-registry.d.ts +1 -1
- package/interceptor/mock-registry.d.ts.map +1 -1
- package/matchers/index.d.ts +1 -1
- package/matchers/index.d.ts.map +1 -1
- package/package.json +6 -6
- package/perf/index.js +4 -4
- package/perf/leak-detector.d.ts.map +1 -1
- package/perf/metrics-collector.d.ts +1 -1
- package/perf/metrics-collector.d.ts.map +1 -1
- package/perf/perf-fixtures.d.ts +1 -1
- package/perf/perf-fixtures.d.ts.map +1 -1
- package/perf/regression-detector.d.ts +1 -1
- package/perf/regression-detector.d.ts.map +1 -1
- package/server/port-registry.d.ts +16 -0
- package/server/port-registry.d.ts.map +1 -1
- package/transport/mcp-20260728.d.ts +19 -0
- package/transport/mcp-20260728.d.ts.map +1 -0
- package/transport/streamable-http.transport.d.ts +15 -1
- package/transport/streamable-http.transport.d.ts.map +1 -1
- package/transport/transport.interface.d.ts +19 -1
- package/transport/transport.interface.d.ts.map +1 -1
- package/webhook/webhook-receiver.d.ts +85 -0
- package/webhook/webhook-receiver.d.ts.map +1 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @description Interceptor chain for request/response interception
|
|
4
4
|
*/
|
|
5
5
|
import type { JsonRpcRequest, JsonRpcResponse } from '../transport/transport.interface';
|
|
6
|
-
import type { InterceptorChain,
|
|
6
|
+
import type { InterceptorChain, InterceptorContext, MockRegistry, RequestInterceptor, ResponseInterceptor } from './interceptor.types';
|
|
7
7
|
export type { InterceptorResult, ResponseInterceptorResult } from './interceptor.types';
|
|
8
8
|
/**
|
|
9
9
|
* Default implementation of InterceptorChain
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interceptor-chain.d.ts","sourceRoot":"","sources":["../../src/interceptor/interceptor-chain.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxF,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EAClB,
|
|
1
|
+
{"version":3,"file":"interceptor-chain.d.ts","sourceRoot":"","sources":["../../src/interceptor/interceptor-chain.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxF,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EAEpB,MAAM,qBAAqB,CAAC;AAI7B,YAAY,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAExF;;GAEG;AACH,qBAAa,uBAAwB,YAAW,gBAAgB;IAC9D,OAAO,EAAE,kBAAkB,EAAE,CA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AQ,EAAE,eAAe,KAAK,eAAe,GAAG,mBAAmB;CAQ9G,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @description Registry for managing request mocks
|
|
4
4
|
*/
|
|
5
5
|
import type { JsonRpcRequest, JsonRpcResponse } from '../transport/transport.interface';
|
|
6
|
-
import type { MockDefinition,
|
|
6
|
+
import type { MockDefinition, MockHandle, MockRegistry } from './interceptor.types';
|
|
7
7
|
/**
|
|
8
8
|
* Default implementation of MockRegistry
|
|
9
9
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock-registry.d.ts","sourceRoot":"","sources":["../../src/interceptor/mock-registry.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxF,OAAO,KAAK,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"mock-registry.d.ts","sourceRoot":"","sources":["../../src/interceptor/mock-registry.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxF,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAYpF;;GAEG;AACH,qBAAa,mBAAoB,YAAW,YAAY;IACtD,OAAO,CAAC,KAAK,CAAmB;IAEhC,GAAG,CAAC,IAAI,EAAE,cAAc,GAAG,UAAU;IAsBrC,KAAK,IAAI,IAAI;IAIb,MAAM,IAAI,cAAc,EAAE;IAI1B,KAAK,CAAC,OAAO,EAAE,cAAc,GAAG,cAAc,GAAG,SAAS;IAiC1D;;OAEG;IACH,OAAO,CAAC,WAAW;CAkCpB;AAED;;GAEG;AACH,eAAO,MAAM,YAAY;IACvB;;OAEG;YACK,CAAC,UAAU,CAAC,OAAM,MAAM,GAAG,MAAM,GAAO,eAAe;IAQ/D;;OAEG;gBACS,MAA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AM,GAAG,IAAI;4BAGpC,MAAM,GAAG,MAAM,GAAG,IAAI;yBAEzB,MAAM,GAAG,MAAM,GAAG,IAAI;;CAEzC,CAAC"}
|
package/matchers/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import './matcher-types';
|
|
1
2
|
/**
|
|
2
3
|
* @file index.ts
|
|
3
4
|
* @description Barrel exports for MCP Jest matchers
|
|
4
5
|
*/
|
|
5
6
|
export { mcpMatchers } from './mcp-matchers';
|
|
6
7
|
export type { McpMatchers } from './matcher-types';
|
|
7
|
-
import './matcher-types';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/matchers/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/matchers/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/matchers/index.ts"],"names":[],"mappings":"AACA,OAAO,iBAAiB,CAAC;AAEzB;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontmcp/testing",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0-rc.1",
|
|
4
4
|
"description": "End-to-end testing for FrontMCP servers: Jest fixtures with a connected MCP client, MCP matchers, JWT and OAuth mocks, and HTTP mocking",
|
|
5
5
|
"author": "AgentFront <info@agentfront.dev>",
|
|
6
6
|
"homepage": "https://frontmcp.dev/reference/testing",
|
|
@@ -93,9 +93,9 @@
|
|
|
93
93
|
"./esm": null
|
|
94
94
|
},
|
|
95
95
|
"peerDependencies": {
|
|
96
|
-
"@frontmcp/lazy-zod": "1.
|
|
97
|
-
"@frontmcp/sdk": "1.
|
|
98
|
-
"@frontmcp/ui": "1.
|
|
96
|
+
"@frontmcp/lazy-zod": "1.12.0-rc.1",
|
|
97
|
+
"@frontmcp/sdk": "1.12.0-rc.1",
|
|
98
|
+
"@frontmcp/ui": "1.12.0-rc.1",
|
|
99
99
|
"@jest/globals": "^29.0.0 || ^30.0.0",
|
|
100
100
|
"@playwright/test": "^1.40.0",
|
|
101
101
|
"jest": "^29.0.0 || ^30.0.0"
|
|
@@ -118,8 +118,8 @@
|
|
|
118
118
|
"node": ">=24.0.0"
|
|
119
119
|
},
|
|
120
120
|
"dependencies": {
|
|
121
|
-
"@frontmcp/protocol": "1.
|
|
122
|
-
"@frontmcp/utils": "1.
|
|
121
|
+
"@frontmcp/protocol": "1.12.0-rc.1",
|
|
122
|
+
"@frontmcp/utils": "1.12.0-rc.1",
|
|
123
123
|
"@swc/core": "~1.15.41",
|
|
124
124
|
"@swc/jest": "~0.2.38",
|
|
125
125
|
"jose": "^6.0.11",
|