The first commit does a little cleanup under the assumption import is always available now.
maint: remove check for node esm support
Currently supported node versions no longer need the check for esm import support.
fix: use file URL for esm import
The fully qualified path needs to be a URL type to work on Windows.
The fix addresses a problem found running the quibble CI for PR 89 on Windows.
The problem can be recreated on Windows by adding this test to package.json:
"test:safe:esm": "cd example/esm-node && npm test -- test/lib/dog-test.mjs:10",
The recreate was not added to this patch series in case a different implementation is preferred.
The first commit does a little cleanup under the assumption import is always available now.
The fix addresses a problem found running the quibble CI for PR 89 on Windows.
The problem can be recreated on Windows by adding this test to
package.json
:"test:safe:esm": "cd example/esm-node && npm test -- test/lib/dog-test.mjs:10",
The recreate was not added to this patch series in case a different implementation is preferred.Tested on Windows on both cmd and bash 'shells'.