test: add PWMCP_DEBUG env switch (#523)
This commit is contained in:
parent
767af21e02
commit
abbe7858a2
1 changed files with 2 additions and 0 deletions
|
|
@ -91,6 +91,8 @@ export const test = baseTest.extend<TestFixtures & TestOptions, WorkerFixtures>(
|
|||
const transport = createTransport(args, mcpMode);
|
||||
let stderr = '';
|
||||
transport.stderr?.on('data', data => {
|
||||
if (process.env.PWMCP_DEBUG)
|
||||
process.stderr.write(data);
|
||||
stderr += data.toString();
|
||||
});
|
||||
await client.connect(transport);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue