l2beat/earl

Support node built-in test runner

neochrome opened this issue · 1 comments

Hi!
Thanks for putting your time and effort into this awesome library!

We're currently looking at replacing Jest with the built-in test runner of node (since v18) and this project is almost a drop-in replacement, except for the snapshot validator.
Currently it seems to accept Mocha and Uvu style TestContexts, but not the one available in native node.
The main difference seems to be how to get the name of the suite.
The node TestContext type can be found in @types/node/test.d.ts.

Would it perhaps make sense to extend the support to include also the native node one?

@krzkaczor Would be great to have this