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.
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.