diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-05-22 19:23:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-22 19:23:35 +0200 |
commit | 960f9ccb2e700332dc576163b62c518120c73f15 (patch) | |
tree | 3bca9c5c449c01344f7dea9a945032fe17bffe63 /cli/tests/integration_tests.rs | |
parent | e191c70989a1dbf29b095bf6c2f7b62b90de012a (diff) |
fix: SWC lexer settings and silent errors (#5752)
This commit changes how error occurring in SWC are handled.
Changed lexer settings to properly handle TS decorators.
Changed output of SWC error to annotate with position in file.
Diffstat (limited to 'cli/tests/integration_tests.rs')
-rw-r--r-- | cli/tests/integration_tests.rs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index 9f73c91b3..457a345dd 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -1575,7 +1575,17 @@ itest!(ts_type_imports { args: "run --reload ts_type_imports.ts", output: "ts_type_imports.ts.out", exit_code: 1, - http_server: true, +}); + +itest!(ts_decorators { + args: "run --reload -c tsconfig.decorators.json ts_decorators.ts", + output: "ts_decorators.ts.out", +}); + +itest!(swc_syntax_error { + args: "run --reload swc_syntax_error.ts", + output: "swc_syntax_error.ts.out", + exit_code: 1, }); itest!(types { |