Skip to content

Commit

Permalink
Remove duplicate check
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jan 25, 2024
1 parent 3b362a1 commit 9acfd3c
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions packages/styled-jsx/transform/tests/fixture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,36 +79,6 @@ fn run(input: PathBuf, use_lightningcss: bool) {
&output,
Default::default(),
);

test_fixture(
syntax(),
&|t| {
// `resolver` uses `Mark` which is stored in a thread-local storage (namely
// swc_common::GLOBALS), and this loop will make `Mark` to be different from the
// invocation above.
//
// 1000 is used because in future I (kdy1) may optimize logic of resolver.
for _ in 0..1000 {
let _mark = Mark::fresh(Mark::root());
}

chain!(
resolver(Mark::new(), Mark::new(), false),
styled_jsx(
t.cm.clone(),
FileName::Real(PathBuf::from("/some-project/src/some-file.js")),
styled_jsx::visitor::Config {
use_lightningcss,
..Default::default()
},
Default::default()
)
)
},
&input,
&output,
Default::default(),
);
}

#[fixture("tests/fixture/**/input.js")]
Expand Down

0 comments on commit 9acfd3c

Please sign in to comment.