diff options
Diffstat (limited to 'cli/tests/testdata/npm/esm')
| -rw-r--r-- | cli/tests/testdata/npm/esm/main.js | 7 | ||||
| -rw-r--r-- | cli/tests/testdata/npm/esm/main.out | 2 | ||||
| -rw-r--r-- | cli/tests/testdata/npm/esm/test.js | 5 | ||||
| -rw-r--r-- | cli/tests/testdata/npm/esm/test.out | 12 |
4 files changed, 26 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/esm/main.js b/cli/tests/testdata/npm/esm/main.js new file mode 100644 index 000000000..3dfa8122a --- /dev/null +++ b/cli/tests/testdata/npm/esm/main.js @@ -0,0 +1,7 @@ +import chalk from "npm:chalk@5"; + +console.log(chalk.green("chalk esm loads")); + +export function test(value) { + return chalk.red(value); +} diff --git a/cli/tests/testdata/npm/esm/main.out b/cli/tests/testdata/npm/esm/main.out new file mode 100644 index 000000000..b6c6dbb59 --- /dev/null +++ b/cli/tests/testdata/npm/esm/main.out @@ -0,0 +1,2 @@ +Download http://localhost:4545/npm/registry/chalk/chalk-5.0.1.tgz +chalk esm loads diff --git a/cli/tests/testdata/npm/esm/test.js b/cli/tests/testdata/npm/esm/test.js new file mode 100644 index 000000000..b9c91c715 --- /dev/null +++ b/cli/tests/testdata/npm/esm/test.js @@ -0,0 +1,5 @@ +import { test } from "./main.js"; + +Deno.test("test", () => { + console.log(test("test")); +}); diff --git a/cli/tests/testdata/npm/esm/test.out b/cli/tests/testdata/npm/esm/test.out new file mode 100644 index 000000000..0f8ef2009 --- /dev/null +++ b/cli/tests/testdata/npm/esm/test.out @@ -0,0 +1,12 @@ +Download http://localhost:4545/npm/registry/chalk/chalk-5.0.1.tgz +Check [WILDCARD]/std/node/module_all.ts +chalk esm loads +running 1 test from ./npm/esm/test.js +test ... +------- output ------- +test +----- output end ----- +test ... ok ([WILDCARD]ms) + +ok | 1 passed | 0 failed ([WILDCARD]s) + |
