Skip to content

Commit 4c9ae4b

Browse files
committed
test: change all fixture directory names to dashed case (#884)
1 parent bc71693 commit 4c9ae4b

File tree

256 files changed

+83
-83
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

256 files changed

+83
-83
lines changed

benches/resolver.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use memory_fs::BenchMemoryFS;
1212

1313
fn data() -> Vec<(PathBuf, &'static str)> {
1414
let cwd = env::current_dir().unwrap();
15-
let f1 = cwd.join("fixtures/enhanced_resolve");
15+
let f1 = cwd.join("fixtures/enhanced-resolve");
1616
let f2 = f1.join("test/fixtures");
1717
vec![
1818
// real packages
@@ -82,7 +82,7 @@ fn symlink<P: AsRef<Path>, Q: AsRef<Path>>(original: P, link: Q) -> io::Result<(
8282
}
8383

8484
fn create_symlinks() -> io::Result<PathBuf> {
85-
let root = env::current_dir()?.join("fixtures/enhanced_resolve");
85+
let root = env::current_dir()?.join("fixtures/enhanced-resolve");
8686
let dirname = root.join("test");
8787
let temp_path = dirname.join("temp_symlinks");
8888
let create_symlink_fixtures = || -> io::Result<()> {
@@ -160,7 +160,7 @@ fn oxc_resolver_real() -> oxc_resolver::Resolver {
160160
fn bench_resolver_memory(c: &mut Criterion) {
161161
let data = data();
162162
let cwd = env::current_dir().unwrap();
163-
let symlink_test_dir = cwd.join("fixtures/enhanced_resolve/test/temp_symlinks");
163+
let symlink_test_dir = cwd.join("fixtures/enhanced-resolve/test/temp_symlinks");
164164

165165
// check validity
166166
for (path, request) in &data {
@@ -370,7 +370,7 @@ fn bench_package_json_deserialization(c: &mut Criterion) {
370370
// Load real complex package.json from fixtures
371371
let complex_json_path = env::current_dir()
372372
.unwrap()
373-
.join("fixtures/enhanced_resolve/test/fixtures/browser-module/package.json");
373+
.join("fixtures/enhanced-resolve/test/fixtures/browser-module/package.json");
374374
let complex_json =
375375
fs::read_to_string(&complex_json_path).expect("Failed to read complex package.json");
376376

@@ -466,8 +466,8 @@ mod memory_fs {
466466
// Add all parent directories for the cwd
467467
self.add_parent_directories(&cwd);
468468

469-
// Load fixtures from enhanced_resolve
470-
let fixtures_base = cwd.join("fixtures/enhanced_resolve");
469+
// Load fixtures from enhanced-resolve
470+
let fixtures_base = cwd.join("fixtures/enhanced-resolve");
471471
if fixtures_base.exists() {
472472
for entry in WalkDir::new(&fixtures_base)
473473
.follow_links(false)
@@ -601,7 +601,7 @@ mod memory_fs {
601601

602602
fn create_symlink_fixtures(&mut self, cwd: &Path) {
603603
// Create temp_symlinks directory
604-
let temp_path = cwd.join("fixtures/enhanced_resolve/test/temp_symlinks");
604+
let temp_path = cwd.join("fixtures/enhanced-resolve/test/temp_symlinks");
605605
self.directories.insert(temp_path.clone());
606606
self.add_parent_directories(&temp_path);
607607

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)