#How to capture bun test output
1 messages · Page 1 of 1 (latest)
after spending more than an hour, tried recreating using Bun spawn, nodejs childprocess and even Zig spawn, all to realise later, bun test returns output in stderr and not stdout regardless of pass or fail
🙂
const { stderr } = Bun.spawnSync(["bun", "test"]);
Bun.write("test_result.txt", stderr.toString());
Oh my. You’re amazing. Thank you so much!!! @arctic ether