Skip to content

Commit f6b19a5

Browse files
committed
fix(server): simplify moduleNameMapper regex and update test:coverage script
1 parent eb23494 commit f6b19a5

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

packages/server/jest.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ module.exports = {
1717

1818
// Stub ESM-only MCP SDK imports for Jest's CJS runtime.
1919
moduleNameMapper: {
20-
'^@modelcontextprotocol/sdk$': '<rootDir>/../components/test/__mocks__/esm-stub.js',
21-
'^@modelcontextprotocol/sdk/(.*)$': '<rootDir>/../components/test/__mocks__/esm-stub.js'
20+
'^@modelcontextprotocol/sdk(/.*)?$': '<rootDir>/../components/test/__mocks__/esm-stub.js'
2221
},
2322

2423
// File extensions to recognize in module resolution

packages/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"e2e": "start-server-and-test dev http://localhost:3000 cypress:run",
4949
"cypress:ci": "START_SERVER_AND_TEST_INSECURE=1 start-server-and-test start https-get://localhost:3000 cypress:run",
5050
"test": "jest --runInBand --detectOpenHandles --forceExit",
51-
"test:coverage": "jest --runInBand --detectOpenHandles --forceExit --coverage"
51+
"test:coverage": "pnpm test --coverage"
5252
},
5353
"keywords": [],
5454
"homepage": "https://flowiseai.com",

0 commit comments

Comments
 (0)