deno_std icon indicating copy to clipboard operation
deno_std copied to clipboard

test(node): check default export and named export

Open kt3k opened this issue 3 years ago • 1 comments

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

kt3k avatar Jul 29 '22 11:07 kt3k

@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)

kt3k avatar Jul 29 '22 15:07 kt3k