deno_std
deno_std copied to clipboard
test(node): check default export and named export
alternative approach to #1382
This PR checks that default export items match to named export items for each node compatible modules.
This PR guarantees that the following 2 patterns of import statements are always equal for every node compat modules.
import fs from "https://deno.land/std/node/fs.ts";
import * as fs from "https://deno.land/std/node/fs.ts";
closes #1910
@bartlomieju
is there some script/test case that verifies that exports are as expected?
node/module_all_test.ts checks that import x and import * as x matches for all modules (except events and stream which have some specific issues)