connor4312 / nodejs-testing

VS Code integration for node:test native tests
MIT License
43 stars 6 forks source link

File system errors are not properly failing tests #2

Closed skanaar closed 1 year ago

skanaar commented 1 year ago

If I try to load a missing file in a test the test is not registered as neither passed nor failed. In the test explorer that test is still marked with a grey circle. But I can confirm that an error is thrown by the fs.readFileSync function.

But throwing a new Error('bla') error properly fails the test.

Screenshot 2023-02-25 at 14 17 03
connor4312 commented 1 year ago

Thanks for the issue, I just published 1.0.1 with the fix. (May take a minute to appear on the marketplace)