diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-05-23 19:04:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-23 19:04:29 +0200 |
| commit | c3c16f025ca6f30f3faaa70481a125494ddcea87 (patch) | |
| tree | 1c2f4ba66838f1177ce01546426c5fea7e73869c /cli/tests | |
| parent | 94f1de5f805638b7bc06ac36b7fb8adb568c7a25 (diff) | |
fix: TSX analysis in module graph loader (#5785)
Diffstat (limited to 'cli/tests')
| -rw-r--r-- | cli/tests/Component.tsx | 1 | ||||
| -rw-r--r-- | cli/tests/integration_tests.rs | 5 | ||||
| -rw-r--r-- | cli/tests/tsx_imports.ts | 1 | ||||
| -rw-r--r-- | cli/tests/tsx_imports.ts.out | 2 |
4 files changed, 9 insertions, 0 deletions
diff --git a/cli/tests/Component.tsx b/cli/tests/Component.tsx new file mode 100644 index 000000000..34208329b --- /dev/null +++ b/cli/tests/Component.tsx @@ -0,0 +1 @@ +import "./046_jsx_test.tsx";
\ No newline at end of file diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index 457a345dd..b3f792b4e 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -1723,6 +1723,11 @@ itest!(disallow_http_from_https_ts { exit_code: 1, }); +itest!(tsx_imports { + args: "run --reload tsx_imports.ts", + output: "tsx_imports.ts.out", +}); + itest!(fix_js_import_js { args: "run --quiet --reload fix_js_import_js.ts", output: "fix_js_import_js.ts.out", diff --git a/cli/tests/tsx_imports.ts b/cli/tests/tsx_imports.ts new file mode 100644 index 000000000..44ba10b7a --- /dev/null +++ b/cli/tests/tsx_imports.ts @@ -0,0 +1 @@ +import "./Component.tsx"; diff --git a/cli/tests/tsx_imports.ts.out b/cli/tests/tsx_imports.ts.out new file mode 100644 index 000000000..4ea4308b1 --- /dev/null +++ b/cli/tests/tsx_imports.ts.out @@ -0,0 +1,2 @@ +Compile [WILDCARD]tsx_imports.ts +{ factory: [Function: View], props: null, children: [] } |
