Skip to content

Commit

Permalink
Update test refs
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jan 9, 2025
1 parent fbc9333 commit 2eef3b9
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 6 deletions.
2 changes: 0 additions & 2 deletions crates/swc_fast_ts_strip/tests/errors/enums.swc-stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
1 | enum Foo { }
: ^^^^^^^^^^^^
`----
help: Unsupported syntax
x TypeScript enum is not supported in strip-only mode
,-[3:1]
2 |
3 | export enum Bar { }
: ^^^^^^^^^^^^
`----
help: Unsupported syntax
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
x TypeScript export assignment is not supported in strip-only mode
,-[2:1]
1 |
2 | export = 1;
: ^^^^^^^^^^^
`----
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
x TypeScript import equals declaration is not supported in strip-only mode
,----
1 | import foo = require("foo");
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----
2 changes: 0 additions & 2 deletions crates/swc_fast_ts_strip/tests/errors/modules.swc-stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
1 | module aModuleKeywordNamespace { }
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----
help: Unsupported syntax
x TypeScript namespace declaration is not supported in strip-only mode
,-[3:1]
2 |
3 | export module aModuleKeywordExportedNamespace { }
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----
help: Unsupported syntax
2 changes: 0 additions & 2 deletions crates/swc_fast_ts_strip/tests/errors/namespaces.swc-stderr
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
1 | namespace Foo { }
: ^^^^^^^^^^^^^^^^^
`----
help: Unsupported syntax
x TypeScript namespace declaration is not supported in strip-only mode
,-[3:1]
2 |
3 | export namespace Bar { }
: ^^^^^^^^^^^^^^^^^
`----
help: Unsupported syntax
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
x TypeScript parameter property is not supported in strip-only mode
,-[5:1]
4 | class Foo {
5 | constructor(public id: string) { }
: ^^^^^^^^^^
6 | }
`----
x TypeScript parameter property is not supported in strip-only mode
,-[10:1]
9 | class Bar {
10 | constructor(private id: string) { }
: ^^^^^^^^^^
11 | }
`----
7 changes: 7 additions & 0 deletions crates/swc_fast_ts_strip/tests/errors/ts-module.swc-stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
x TypeScript namespace declaration is not supported in strip-only mode
,-[3:1]
2 |
3 | ,-> module Foo {
4 | | export const foo = 1;
5 | `-> }
`----
7 changes: 7 additions & 0 deletions crates/swc_fast_ts_strip/tests/errors/ts-namespace.swc-stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
x TypeScript namespace declaration is not supported in strip-only mode
,-[3:1]
2 |
3 | ,-> namespace Foo {
4 | | export const foo = 1;
5 | `-> }
`----

0 comments on commit 2eef3b9

Please sign in to comment.