1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-20 14:24:48 -05:00
denoland-deno/tests/registry/npm/@denotest/esm-import-cjs-default/1.0.0/index.mjs
David Sherret 1587387bcc
chore(test): move npm registries to separate servers and to the tests/registry folder (#23717)
1. Moves the npm registries to their own dedicated ports.
2. Moves the data files out of `tests/testdata/npm/registry` to
`tests/registry/npm`.
2024-05-07 01:06:01 +00:00

17 lines
604 B
JavaScript

import defaultImport, { MyClass } from "@denotest/cjs-default-export";
import * as namespaceImport from "@denotest/cjs-default-export";
import localDefaultImport from "./local.cjs";
import * as localNamespaceImport from "./local.cjs";
console.log("Node esm importing node cjs");
console.log("===========================");
console.log(defaultImport);
console.log(localDefaultImport);
console.log(namespaceImport);
console.log(localNamespaceImport);
console.log("===========================");
console.log(MyClass.someStaticMethod());
export default function() {
return defaultImport.default() * 5;
}