This is an early exploration of how module support could be added. Known issues:
[ ] Uses async/await so 0.10 support wouldn't be maintained.
[ ] Uses import() syntax so that would either have to be isolated into its own lazy-loaded file or would bump the required version even further. Loading a file with import() syntax on ERR_REQUIRE_ESM should be safe though.
This is an early exploration of how module support could be added. Known issues:
import()
syntax so that would either have to be isolated into its own lazy-loaded file or would bump the required version even further. Loading a file withimport()
syntax onERR_REQUIRE_ESM
should be safe though.Fixes https://github.com/testdouble/teenytest/issues/52
This PR was started by: git wf pr