8000 fix error · coder-xiaotian/swc-useclient@0a0792e · GitHub
[go: up one dir, main page]

Skip to content

Commit 0a0792e

Browse files
fix error
1 parent 3cb55cf commit 0a0792e

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

transform/tests/fixture.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
use std::{fs::read_to_string, path::PathBuf};
2-
use swc_core::{
3-
ecma::transforms::testing::{test_fixture, FixtureTestConfig},
4-
ecma::{
5-
parser::{EsConfig, Syntax},
6-
visit::as_folder,
7-
},
8-
};
1+
use swc_core::ecma::parser::{EsConfig, Syntax};
92
use testing::fixture;
103
use use_client::{Config, TransformVisitor};
114

@@ -22,7 +15,7 @@ fn use_client_fixture(input: PathBuf) {
2215
let output = dir.join("output.js");
2316
let config = read_to_string(dir.join("config.json")).expect("failed to read config.json");
2417
let config: Config = serde_json::from_str(&config).unwrap();
25-
let filepath: String = input.to_string_lossy().into()
18+
let filepath: String = input.to_string_lossy().into();
2619

2720
test_fixture(
2821
syntax(),

0 commit comments

Comments
 (0)
0