testplane
testplane copied to clipboard
feat: Use mocha.loadFilesAsync to support ESM
This enables writing test files as ES modules. See also https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
Hello. Thank you. I will test it today.
I tested these changes. Works seamlessly on a test project, but fails on our big project with thousands tests. I will look at the problem that has arisen.
Hermione can't read test files asynchronously because of global hermione
object. Test API provided by this object will work incorrectly:
- skips
- only
- config overriding
Closing in favor of:
- https://github.com/gemini-testing/hermione/pull/670
- https://github.com/gemini-testing/hermione/pull/671
- https://github.com/gemini-testing/mocha/pull/10 + https://github.com/gemini-testing/hermione/pull/673