diff options
Diffstat (limited to 'tests/specs')
-rw-r--r-- | tests/specs/npm/unanalyzable_dynamic_import/__test__.jsonc | 4 | ||||
-rw-r--r-- | tests/specs/npm/unanalyzable_dynamic_import/main.out | 1 | ||||
-rw-r--r-- | tests/specs/npm/unanalyzable_dynamic_import/main.ts | 4 |
3 files changed, 9 insertions, 0 deletions
diff --git a/tests/specs/npm/unanalyzable_dynamic_import/__test__.jsonc b/tests/specs/npm/unanalyzable_dynamic_import/__test__.jsonc new file mode 100644 index 000000000..0ef147253 --- /dev/null +++ b/tests/specs/npm/unanalyzable_dynamic_import/__test__.jsonc @@ -0,0 +1,4 @@ +{ + "args": "run -A --quiet main.ts", + "output": "main.out" +} diff --git a/tests/specs/npm/unanalyzable_dynamic_import/main.out b/tests/specs/npm/unanalyzable_dynamic_import/main.out new file mode 100644 index 000000000..00750edc0 --- /dev/null +++ b/tests/specs/npm/unanalyzable_dynamic_import/main.out @@ -0,0 +1 @@ +3 diff --git a/tests/specs/npm/unanalyzable_dynamic_import/main.ts b/tests/specs/npm/unanalyzable_dynamic_import/main.ts new file mode 100644 index 000000000..793833ee2 --- /dev/null +++ b/tests/specs/npm/unanalyzable_dynamic_import/main.ts @@ -0,0 +1,4 @@ +const specifier = "npm:@denotest/add"; +const { add } = await import(specifier); + +console.log(add(1, 2)); |