diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-10-27 17:54:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-27 17:54:46 -0400 |
commit | a4d4acd1aff3f6213d43d921624d69195c379744 (patch) | |
tree | 9c3dd94821e36c59d97aea666d5dd4c3aa6823ef /cli/tests/integration/npm_tests.rs | |
parent | 1376c6932f6357a38fa3d3d0f134951f3890964a (diff) |
chore(npm): add explicit tests for `module.exports` assignment with type checking (#16435)
Diffstat (limited to 'cli/tests/integration/npm_tests.rs')
-rw-r--r-- | cli/tests/integration/npm_tests.rs | 14 |
1 files changed, 14 insertions, 0 deletions
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 { |