From a4d4acd1aff3f6213d43d921624d69195c379744 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 27 Oct 2022 17:54:46 -0400 Subject: chore(npm): add explicit tests for `module.exports` assignment with type checking (#16435) --- cli/tests/integration/npm_tests.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'cli/tests/integration') diff --git a/cli/tests/integration/npm_tests.rs b/cli/tests/integration/npm_tests.rs index 722cbdb39..9e3ef5678 100644 --- a/cli/tests/integration/npm_tests.rs +++ b/cli/tests/integration/npm_tests.rs @@ -110,6 +110,20 @@ itest!(child_process_fork_test { http_server: true, }); +itest!(cjs_module_export_assignment { + args: "run -A --unstable --quiet --check=all npm/cjs_module_export_assignment/main.ts", + output: "npm/cjs_module_export_assignment/main.out", + envs: env_vars(), + http_server: true, +}); + +itest!(cjs_module_export_assignment_number { + args: "run -A --unstable --quiet --check=all npm/cjs_module_export_assignment_number/main.ts", + output: "npm/cjs_module_export_assignment_number/main.out", + envs: env_vars(), + http_server: true, +}); + // FIXME(bartlomieju): npm: specifiers are not handled in dynamic imports // at the moment // itest!(dynamic_import { -- cgit v1.2.3