Skip to content

Commit 2eef3b9

Browse files
committed
Update test refs
1 parent fbc9333 commit 2eef3b9

File tree

8 files changed

+39
-6
lines changed

8 files changed

+39
-6
lines changed

crates/swc_fast_ts_strip/tests/errors/enums.swc-stderr

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
1 | enum Foo { }
44
: ^^^^^^^^^^^^
55
`----
6-
help: Unsupported syntax
76
x TypeScript enum is not supported in strip-only mode
87
,-[3:1]
98
2 |
109
3 | export enum Bar { }
1110
: ^^^^^^^^^^^^
1211
`----
13-
help: Unsupported syntax
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
x TypeScript export assignment is not supported in strip-only mode
2+
,-[2:1]
3+
1 |
4+
2 | export = 1;
5+
: ^^^^^^^^^^^
6+
`----
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
x TypeScript import equals declaration is not supported in strip-only mode
2+
,----
3+
1 | import foo = require("foo");
4+
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5+
`----

crates/swc_fast_ts_strip/tests/errors/modules.swc-stderr

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
1 | module aModuleKeywordNamespace { }
44
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
55
`----
6-
help: Unsupported syntax
76
x TypeScript namespace declaration is not supported in strip-only mode
87
,-[3:1]
98
2 |
109
3 | export module aModuleKeywordExportedNamespace { }
1110
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1211
`----
13-
help: Unsupported syntax

crates/swc_fast_ts_strip/tests/errors/namespaces.swc-stderr

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
1 | namespace Foo { }
44
: ^^^^^^^^^^^^^^^^^
55
`----
6-
help: Unsupported syntax
76
x TypeScript namespace declaration is not supported in strip-only mode
87
,-[3:1]
98
2 |
109
3 | export namespace Bar { }
1110
: ^^^^^^^^^^^^^^^^^
1211
`----
13-
help: Unsupported syntax
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
x TypeScript parameter property is not supported in strip-only mode
2+
,-[5:1]
3+
4 | class Foo {
4+
5 | constructor(public id: string) { }
5+
: ^^^^^^^^^^
6+
6 | }
7+
`----
8+
x TypeScript parameter property is not supported in strip-only mode
9+
,-[10:1]
10+
9 | class Bar {
11+
10 | constructor(private id: string) { }
12+
: ^^^^^^^^^^
13+
11 | }
14+
`----
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
x TypeScript namespace declaration is not supported in strip-only mode
2+
,-[3:1]
3+
2 |
4+
3 | ,-> module Foo {
5+
4 | | export const foo = 1;
6+
5 | `-> }
7+
`----
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
x TypeScript namespace declaration is not supported in strip-only mode
2+
,-[3:1]
3+
2 |
4+
3 | ,-> namespace Foo {
5+
4 | | export const foo = 1;
6+
5 | `-> }
7+
`----

0 commit comments

Comments
 (0)