@frontmcp/testing 1.6.1 → 1.7.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/esm/package.json +6 -6
- package/jest-preset.js +15 -4
- package/package.json +6 -6
package/esm/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontmcp/testing",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.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.7.1",
|
|
91
|
+
"@frontmcp/sdk": "1.7.1",
|
|
92
|
+
"@frontmcp/ui": "1.7.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.7.1",
|
|
116
|
+
"@frontmcp/utils": "1.7.1",
|
|
117
117
|
"jose": "^6.0.11",
|
|
118
118
|
"tslib": "^2.3.0"
|
|
119
119
|
},
|
package/jest-preset.js
CHANGED
|
@@ -15,15 +15,21 @@ module.exports = {
|
|
|
15
15
|
// Use Node.js environment for E2E tests
|
|
16
16
|
testEnvironment: 'node',
|
|
17
17
|
|
|
18
|
-
//
|
|
18
|
+
// Must cover `.js`/`.jsx` as well as `.ts`/`.tsx`: `transformIgnorePatterns`
|
|
19
|
+
// only un-ignores a file and `testMatch` only discovers one — the transform
|
|
20
|
+
// still has to match it. ESM-only deps ship `.js`, and testMatch accepts
|
|
21
|
+
// `.e2e.spec.js(x)`, so a `.tsx?`-only rule would silently skip both.
|
|
19
22
|
transform: {
|
|
20
|
-
'^.+\\.
|
|
23
|
+
'^.+\\.[tj]sx?$': [
|
|
21
24
|
'ts-jest',
|
|
22
25
|
{
|
|
23
26
|
useESM: false,
|
|
24
27
|
tsconfig: {
|
|
25
28
|
// Allow importing .js extensions for ESM compatibility
|
|
26
29
|
moduleResolution: 'node',
|
|
30
|
+
// Required to compile the `.js`/`.jsx` files the rule now matches.
|
|
31
|
+
allowJs: true,
|
|
32
|
+
jsx: 'react-jsx',
|
|
27
33
|
},
|
|
28
34
|
},
|
|
29
35
|
],
|
|
@@ -39,8 +45,10 @@ module.exports = {
|
|
|
39
45
|
// Path resolves to the compiled output when used from node_modules/@frontmcp/testing
|
|
40
46
|
setupFilesAfterEnv: [require.resolve('@frontmcp/testing/setup')],
|
|
41
47
|
|
|
42
|
-
//
|
|
43
|
-
|
|
48
|
+
// E2E specs, per the `.e2e.spec.ts(x)` convention the CLI's injected config
|
|
49
|
+
// also enforces. The legacy `.e2e.ts` / `.test.ts` globs matched none of the
|
|
50
|
+
// documented names, so projects on this preset silently ran zero E2E tests.
|
|
51
|
+
testMatch: ['**/*.e2e.spec.ts', '**/*.e2e.spec.tsx', '**/*.e2e.spec.js', '**/*.e2e.spec.jsx'],
|
|
44
52
|
|
|
45
53
|
// Module name mapping for path aliases
|
|
46
54
|
// Note: These point to dist/ since the package exports declare dist/index.js
|
|
@@ -50,6 +58,9 @@ module.exports = {
|
|
|
50
58
|
'^@frontmcp/testing/(.*)$': '<rootDir>/node_modules/@frontmcp/testing/dist/$1',
|
|
51
59
|
},
|
|
52
60
|
|
|
61
|
+
// Transpile ESM-only deps; the `.pnpm` skip keeps this correct under pnpm (issue #519).
|
|
62
|
+
transformIgnorePatterns: ['node_modules[/\\\\](?!\\.pnpm[/\\\\])(?!(jose)[/\\\\])'],
|
|
63
|
+
|
|
53
64
|
// Ignore patterns
|
|
54
65
|
testPathIgnorePatterns: ['/node_modules/', '/dist/'],
|
|
55
66
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontmcp/testing",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.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.7.1",
|
|
91
|
+
"@frontmcp/sdk": "1.7.1",
|
|
92
|
+
"@frontmcp/ui": "1.7.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.7.1",
|
|
116
|
+
"@frontmcp/utils": "1.7.1",
|
|
117
117
|
"jose": "^6.0.11",
|
|
118
118
|
"tslib": "^2.3.0"
|
|
119
119
|
},
|