Skip to content

Conversation

@bmiddha
Copy link
Member

@bmiddha bmiddha commented Dec 18, 2025

Summary

Details

How it was tested

Impacted documentation

);

let config: INodeTestConfiguration = {};
if (await FileSystem.existsAsync(configPath)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Read and handle missing file instead, please.

taskSession.logger.terminal.writeDebugLine(`Executing: node ${args.join(' ')}`);

const child = child_process.spawn('node', args, {
stdio: ['inherit', 'inherit', 'inherit'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typically we prefer to pipe so that we can label the output and associate it with the plugin.

reject(new Error(`Failed to spawn Node.js test process: ${error.message}`));
});

child.on('exit', (code, signal) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may wish to use close instead to ensure that all output has been processed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs triage

Development

Successfully merging this pull request may close these issues.

3 participants