summaryrefslogtreecommitdiff
path: root/tests/registry
diff options
context:
space:
mode:
Diffstat (limited to 'tests/registry')
-rw-r--r--tests/registry/npm/@denotest/type-commonjs/1.0.0/index.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/registry/npm/@denotest/type-commonjs/1.0.0/index.js b/tests/registry/npm/@denotest/type-commonjs/1.0.0/index.js
index cb0ff5c3b..d3f80a049 100644
--- a/tests/registry/npm/@denotest/type-commonjs/1.0.0/index.js
+++ b/tests/registry/npm/@denotest/type-commonjs/1.0.0/index.js
@@ -1 +1,5 @@
-export {};
+// this module is declared as CommonJS, but during loading we'll
+// discover it's ESM and load it fine
+export function add(a, b) {
+ return a + b;
+}