Closed jculvey closed 1 month ago
Replaces the current auto-mocking of 'dns' to support destructured ESM imports and allow for functional polyfill coverage in the future.
Adds a polyfill for the node:dns module.
node:dns
Also moves the helpful notImplementedAsync helper to utils from fs so that it can be reused.
notImplementedAsync
utils
fs
Crazy idea: https://github.com/unjs/unenv/issues/198
Replaces the current auto-mocking of 'dns' to support destructured ESM imports and allow for functional polyfill coverage in the future.
๐ Linked issue
โ Type of change
๐ Description
Adds a polyfill for the
node:dns
module.Also moves the helpful
notImplementedAsync
helper toutils
fromfs
so that it can be reused.๐ Checklist