summaryrefslogtreecommitdiff
path: root/tests/testdata/npm/cjs_require_esm_error
diff options
context:
space:
mode:
authorsnek <snek@deno.com>2024-09-10 13:12:36 -0700
committerGitHub <noreply@github.com>2024-09-10 20:12:36 +0000
commitf9007d3386bbe9f709ce413ac0cf099b86d4c4bf (patch)
tree3254119b37ef434062c431b2b4964d9317fb5f1a /tests/testdata/npm/cjs_require_esm_error
parentee3829a7787b337b2a7e98251b40d5937b2c255b (diff)
feat: require(esm) (#25501)
implement require(esm) using `op_import_sync` from deno_core. possible future changes: - cts and mts - replace Deno.core.evalContext to optimize esm syntax detection Fixes: https://github.com/denoland/deno/issues/25487
Diffstat (limited to 'tests/testdata/npm/cjs_require_esm_error')
-rw-r--r--tests/testdata/npm/cjs_require_esm_error/main.out2
-rw-r--r--tests/testdata/npm/cjs_require_esm_error/main.ts1
2 files changed, 0 insertions, 3 deletions
diff --git a/tests/testdata/npm/cjs_require_esm_error/main.out b/tests/testdata/npm/cjs_require_esm_error/main.out
deleted file mode 100644
index b6ade6904..000000000
--- a/tests/testdata/npm/cjs_require_esm_error/main.out
+++ /dev/null
@@ -1,2 +0,0 @@
-error: Uncaught (in promise) Error: require() of ES Module [WILDCARD]my_es_module.js from [WILDCARD]index.js not supported. Instead change the require to a dynamic import() which is available in all CommonJS modules.
- [WILDCARD]
diff --git a/tests/testdata/npm/cjs_require_esm_error/main.ts b/tests/testdata/npm/cjs_require_esm_error/main.ts
deleted file mode 100644
index 3fbb1215a..000000000
--- a/tests/testdata/npm/cjs_require_esm_error/main.ts
+++ /dev/null
@@ -1 +0,0 @@
-import "npm:@denotest/cjs-require-esm-error";