fix(npm): remove export binding to match node (#15837)

This commit is contained in:
David Sherret 2022-09-10 11:38:11 -04:00 committed by GitHub
parent a54d5654a2
commit 3b0de03b59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 42 additions and 21 deletions

View file

@ -61,6 +61,14 @@ itest!(cjs_reexport_collision {
http_server: true,
});
itest!(cjs_this_in_exports {
args: "run --allow-read --unstable --quiet npm/cjs_this_in_exports/main.js",
output: "npm/cjs_this_in_exports/main.out",
envs: env_vars(),
http_server: true,
exit_code: 1,
});
itest!(translate_cjs_to_esm {
args: "run --unstable -A --quiet npm/translate_cjs_to_esm/main.js",
output: "npm/translate_cjs_to_esm/main.out",
@ -422,6 +430,7 @@ fn env_vars_no_sync_download() -> Vec<(String, String)> {
"DENO_NPM_REGISTRY".to_string(),
"http://localhost:4545/npm/registry/".to_string(),
),
("NO_COLOR".to_string(), "1".to_string()),
]
}