Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jan 10, 2025
1 parent 2b65aae commit c677abf
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 223 deletions.
5 changes: 2 additions & 3 deletions crates/swc_fast_ts_strip/benches/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ fn fast_ts(c: &mut Criterion) {
fn fast_typescript(b: &mut Bencher) {
b.iter(|| {
::testing::run_test(false, |cm, handler| {
black_box(operate(
let _result = black_box(operate(
&cm,
handler,
black_box(SOURCE.to_string()),
Options {
..Default::default()
},
))
.unwrap();
));

Ok(())
})
Expand Down
12 changes: 6 additions & 6 deletions crates/swc_fast_ts_strip/tests/fixture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ fn test(input: PathBuf) {
let transform_output_file = input.with_extension("transform.js");

let err = testing::run_test(false, |cm, handler| {
let code = operate(&cm, handler, input_code.clone(), opts(Mode::StripOnly))
.expect("should not return Err()")
.code;
if let Ok(code) = operate(&cm, handler, input_code.clone(), opts(Mode::StripOnly)) {
let code = code.code;

NormalizedOutput::new_raw(code)
.compare_to_file(output_file)
.unwrap();
NormalizedOutput::new_raw(code)
.compare_to_file(output_file)
.unwrap();
}

if handler.has_errors() {
return Err(());
Expand Down
6 changes: 0 additions & 6 deletions crates/swc_fast_ts_strip/tests/fixture/class-properties.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
: ^^^^^^^^^^^^^^^^^^
4 | console.log(3)
`----
help: Unsupported syntax
198 changes: 0 additions & 198 deletions crates/swc_fast_ts_strip/tests/fixture/test-case-1.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
: ^^^^^^^^^^^^^^
8 | //^^^^^^^^
`----
help: Unsupported syntax
7 changes: 0 additions & 7 deletions crates/swc_fast_ts_strip/tests/fixture/unicode.js

This file was deleted.

1 change: 0 additions & 1 deletion crates/swc_fast_ts_strip/tests/fixture/unicode.swc-stderr
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
: ^^^^^^^^^^^^^^
5 | }
`----
help: Unsupported syntax

0 comments on commit c677abf

Please sign in to comment.