Skip to content

Commit 5f35cbf

Browse files
Update crates/biome_test_utils/src/lib.rs
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 90efb49 commit 5f35cbf

File tree

1 file changed

+4
-0
lines changed
  • crates/biome_test_utils/src

1 file changed

+4
-0
lines changed

crates/biome_test_utils/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,10 @@ fn get_js_like_paths_in_dir(dir: &Utf8Path) -> Vec<BiomePath> {
331331
.collect()
332332
}
333333

334+
/// Searches for a `pnpm-workspace.yaml` file adjacent to the input file
335+
/// and parses its catalog section if present.
336+
///
337+
/// Returns `None` if the workspace file is not found or parsing fails.
334338
fn find_pnpm_workspace_catalog(fs: &dyn FileSystem, input_file: &Utf8Path) -> Option<Catalogs> {
335339
let workspace_file = input_file.with_file_name("pnpm-workspace.yaml");
336340
if !fs.path_is_file(&workspace_file) {

0 commit comments

Comments
 (0)