Skip to content

Conversation

@webstech
Copy link
Contributor

@webstech webstech commented Feb 6, 2023

The first commit does a little cleanup under the assumption import is always available now.

  1. maint: remove check for node esm support
    Currently supported node versions no longer need the check for esm import support.
  2. 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.

Tested on Windows on both cmd and bash 'shells'.

Currently supported node versions no longer need the check for esm
import support.

Signed-off-by: Chris. Webster <[email protected]>
The fully qualified path needs to be a URL type to work on Windows.

Signed-off-by: Chris. Webster <[email protected]>
@searls searls merged commit 3d83512 into testdouble:main Feb 12, 2023
@webstech webstech mentioned this pull request Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants