Skip to content

Commit 3494601

Browse files
committed
body parsing middleware
1 parent 4dc6d07 commit 3494601

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dev-packages/e2e-tests/test-applications/node-express/src/app.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ import { mcpRouter } from './mcp';
2525
const app = express();
2626
const port = 3030;
2727

28+
app.use(express.json());
29+
2830
app.use(mcpRouter);
2931

3032
app.get('/crash-in-with-monitor/:id', async (req, res) => {

dev-packages/e2e-tests/test-applications/node-express/tests/mcp.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ test('Should record transactions for mcp handlers', async ({ baseURL }) => {
1212
});
1313

1414
await client.connect(transport);
15-
// waith for the SSE connection to be established in CI.
16-
await new Promise(resolve => setTimeout(resolve, 3000));
15+
1716
await test.step('tool handler', async () => {
1817
const postTransactionPromise = waitForTransaction('node-express', transactionEvent => {
1918
return transactionEvent.transaction === 'POST /messages';

0 commit comments

Comments
 (0)