diff options
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/cjs_imports.ts | 1 | ||||
-rw-r--r-- | cli/tests/cjs_imports.ts.out | 1 | ||||
-rw-r--r-- | cli/tests/commonjs.cjs | 1 | ||||
-rw-r--r-- | cli/tests/integration_tests.rs | 5 |
4 files changed, 8 insertions, 0 deletions
diff --git a/cli/tests/cjs_imports.ts b/cli/tests/cjs_imports.ts new file mode 100644 index 000000000..d8b77c22e --- /dev/null +++ b/cli/tests/cjs_imports.ts @@ -0,0 +1 @@ +import "./commonjs.cjs"; diff --git a/cli/tests/cjs_imports.ts.out b/cli/tests/cjs_imports.ts.out new file mode 100644 index 000000000..557db03de --- /dev/null +++ b/cli/tests/cjs_imports.ts.out @@ -0,0 +1 @@ +Hello World diff --git a/cli/tests/commonjs.cjs b/cli/tests/commonjs.cjs new file mode 100644 index 000000000..7df7d571e --- /dev/null +++ b/cli/tests/commonjs.cjs @@ -0,0 +1 @@ +console.log("Hello World");
\ No newline at end of file diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index 6ab204082..807efb1c5 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -1832,6 +1832,11 @@ itest!(es_private_fields { output: "es_private_fields.js.out", }); +itest!(cjs_imports { + args: "run --quiet --reload cjs_imports.ts", + output: "cjs_imports.ts.out", +}); + itest!(proto_exploit { args: "run proto_exploit.js", output: "proto_exploit.js.out", |