diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2024-03-09 10:21:31 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-09 10:21:31 -0500 |
| commit | 5d3d4eba398ce862aa57d5de43d17e7ae1d45d3c (patch) | |
| tree | 75f528a8e1593ed46383aab2e7114445e0f8d34d /tests/testdata/npm/cjs_pkg_imports | |
| parent | e1fb174f86adce421ee6bbce70e5dc1558c10868 (diff) | |
fix(node): require of pkg json imports was broken (#22821)
Diffstat (limited to 'tests/testdata/npm/cjs_pkg_imports')
| -rw-r--r-- | tests/testdata/npm/cjs_pkg_imports/main.out | 3 | ||||
| -rw-r--r-- | tests/testdata/npm/cjs_pkg_imports/main.ts | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/testdata/npm/cjs_pkg_imports/main.out b/tests/testdata/npm/cjs_pkg_imports/main.out new file mode 100644 index 000000000..b2df56f80 --- /dev/null +++ b/tests/testdata/npm/cjs_pkg_imports/main.out @@ -0,0 +1,3 @@ +Download http://localhost:4545/npm/registry/@denotest/cjs-pkg-imports +Download http://localhost:4545/npm/registry/@denotest/cjs-pkg-imports/1.0.0.tgz +{ crypto: Crypto { subtle: SubtleCrypto {} }, number: 5 } diff --git a/tests/testdata/npm/cjs_pkg_imports/main.ts b/tests/testdata/npm/cjs_pkg_imports/main.ts new file mode 100644 index 000000000..b30a3f85c --- /dev/null +++ b/tests/testdata/npm/cjs_pkg_imports/main.ts @@ -0,0 +1,3 @@ +import crypto from "npm:@denotest/cjs-pkg-imports"; + +console.log(crypto); |
