8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cb55cf commit 0a0792eCopy full SHA for 0a0792e
transform/tests/fixture.rs
@@ -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
-};
+use swc_core::ecma::parser::{EsConfig, Syntax};
9
use testing::fixture;
10
use use_client::{Config, TransformVisitor};
11
@@ -22,7 +15,7 @@ fn use_client_fixture(input: PathBuf) {
22
15
let output = dir.join("output.js");
23
16
let config = read_to_string(dir.join("config.json")).expect("failed to read config.json");
24
17
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();
26
19
27
20
test_fixture(
28
21
syntax(),
0 commit comments