Originally opened by @Lojhan in wellwelwel/poku#1014.
When running the test suite with --sharedResources, the immediate output from the spawned child processes is suppressed.
Reproduction:
run any test with console.log with/ without --sharedResources
test('should stdout console.log', () => {
console.log('This is a console.log from setter-a.test.ts');
});
The most straightforward/naive solution involves adding a console.log directly to the stdout function within the parent process. But surelly there's a better way to do this.
const stdOut = (data: Buffer): void => {
output += String(data);
if (GLOBAL.configs.sharedResources) {
console.log(String(data));
}
};
When running the test suite with --sharedResources, the immediate output from the spawned child processes is suppressed.
Reproduction:
run any test with console.log with/ without
--sharedResourcesThe most straightforward/naive solution involves adding a console.log directly to the stdout function within the parent process. But surelly there's a better way to do this.