Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds a node-test plugin using `node:test#run()`. There are quite a few gotchas with this one: * If we want to support Node.js 18 and 20 then we can't use glob patterns (the `globPatterns` option) because it's only supported in Node.js 22. I think glob patterns are important so I've replicated with the glob package. * We don't support Node.js 18 less than v18.17.0, this is because there wasn't a consistent JavaScript API for the built-in test reporters before this version. This is captured in the engines. An alternative would be to drop Node.js 18 support in this package as we'll be doing this in April 2025 anyway. * There is no way of configuring the built-in test runner via a config file or similar. This means we need to expose more options than Jest or Mocha in the Tool Kit config file.
- Loading branch information