test: update snapshots#10794
Conversation
|
✅ Organic activityNo automation signals detected in the analyzed events. This is an automated analysis by AgentScan |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
Walkthrough
Suggested labels
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@crates/biome_cli/tests/snap_test.rs`:
- Line 45: The snapshot test’s configuration_list is using config file contents
as the BTreeMap key, which can overwrite duplicate configs and drop entries.
Update the collection logic in snap_test.rs around the configuration_list
population to key by a stable file identifier (for example the file path or
another unique name) while still preserving deterministic ordering, and keep the
existing configuration_list field as the snapshot output target.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 931070c8-9fea-4280-91ef-32025f6f2f37
⛔ Files ignored due to path filters (14)
crates/biome_cli/tests/snapshots/main_cases_config_extends/extends_config_ok_from_npm_package.snapis excluded by!**/*.snapand included by**crates/biome_cli/tests/snapshots/main_cases_config_extends/extends_config_ok_from_npm_package_with_author_field.snapis excluded by!**/*.snapand included by**crates/biome_cli/tests/snapshots/main_cases_config_extends/extends_config_ok_from_npm_package_with_condition_names.snapis excluded by!**/*.snapand included by**crates/biome_cli/tests/snapshots/main_cases_config_extends/extends_config_two_levels_deep.snapis excluded by!**/*.snapand included by**crates/biome_cli/tests/snapshots/main_cases_configuration/uses_project_config_before_user_config.snapis excluded by!**/*.snapand included by**crates/biome_cli/tests/snapshots/main_cases_migrate_v2/should_migrate_nested_config.snapis excluded by!**/*.snapand included by**crates/biome_cli/tests/snapshots/main_cases_monorepo/should_fail_for_nested_roots.snapis excluded by!**/*.snapand included by**crates/biome_cli/tests/snapshots/main_cases_monorepo/should_format_nested_files_differently.snapis excluded by!**/*.snapand included by**crates/biome_cli/tests/snapshots/main_cases_monorepo/should_ignore_files_in_nested_projects.snapis excluded by!**/*.snapand included by**crates/biome_cli/tests/snapshots/main_cases_monorepo/should_ignore_nested_configuration_in_ignored_directory.snapis excluded by!**/*.snapand included by**crates/biome_cli/tests/snapshots/main_cases_monorepo/when_running_from_a_subdirectory_should_extend_from_the_root_config.snapis excluded by!**/*.snapand included by**crates/biome_cli/tests/snapshots/main_commands_lint/should_apply_root_settings_with_stdin_file_path_and_extended_config.snapis excluded by!**/*.snapand included by**crates/biome_cli/tests/snapshots/main_commands_lint/should_apply_root_settings_with_stdin_file_path_and_extended_non_root_config.snapis excluded by!**/*.snapand included by**crates/biome_cli/tests/snapshots/main_commands_migrate/should_migrate_nested_files.snapis excluded by!**/*.snapand included by**
📒 Files selected for processing (1)
crates/biome_cli/tests/snap_test.rs
0f65142 to
ffb19f7
Compare
There was a problem hiding this comment.
🧹 Nitpick comments (1)
crates/biome_module_graph/tests/spec_tests.rs (1)
4024-4029: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winRename
files_to_snapshot_vec.It returns a
BTreeMapnow, so the*_vecsuffix is fibbing a bit. Renaming it tofiles_to_snapshot_map(or similar) would keep the helper honest and the call sites clearer.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@crates/biome_module_graph/tests/spec_tests.rs` around lines 4024 - 4029, Rename the helper function files_to_snapshot_vec to reflect that it returns a BTreeMap rather than a Vec, and update all call sites in spec_tests.rs accordingly. Keep the new name aligned with the return type, such as files_to_snapshot_map, and ensure any references to files_to_snapshot_vec in nearby snapshot setup code are updated to match.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@crates/biome_module_graph/tests/spec_tests.rs`:
- Around line 4024-4029: Rename the helper function files_to_snapshot_vec to
reflect that it returns a BTreeMap rather than a Vec, and update all call sites
in spec_tests.rs accordingly. Keep the new name aligned with the return type,
such as files_to_snapshot_map, and ensure any references to
files_to_snapshot_vec in nearby snapshot setup code are updated to match.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: a9d26454-a211-470e-889b-95a7cbfeab6a
⛔ Files ignored due to path filters (13)
crates/biome_module_graph/tests/snapshots/test_astro_component_imports_snapshot.snapis excluded by!**/*.snapand included by**crates/biome_module_graph/tests/snapshots/test_export_default_imported_binding.snapis excluded by!**/*.snapand included by**crates/biome_module_graph/tests/snapshots/test_jsx_imports_css_file.snapis excluded by!**/*.snapand included by**crates/biome_module_graph/tests/snapshots/test_namespace_reexport_type_inference.snapis excluded by!**/*.snapand included by**crates/biome_module_graph/tests/snapshots/test_resolve_exports.snapis excluded by!**/*.snapand included by**crates/biome_module_graph/tests/snapshots/test_resolve_generic_return_value_with_multiple_modules.snapis excluded by!**/*.snapand included by**crates/biome_module_graph/tests/snapshots/test_resolve_import_as_namespace.snapis excluded by!**/*.snapand included by**crates/biome_module_graph/tests/snapshots/test_resolve_multiple_reexports.snapis excluded by!**/*.snapand included by**crates/biome_module_graph/tests/snapshots/test_resolve_nested_function_call_with_namespace_in_return_type.snapis excluded by!**/*.snapand included by**crates/biome_module_graph/tests/snapshots/test_resolve_promise_from_imported_function_returning_reexported_promise_type.snapis excluded by!**/*.snapand included by**crates/biome_module_graph/tests/snapshots/test_resolve_single_reexport.snapis excluded by!**/*.snapand included by**crates/biome_module_graph/tests/snapshots/test_svelte_component_imports_snapshot.snapis excluded by!**/*.snapand included by**crates/biome_module_graph/tests/snapshots/test_vue_component_imports_snapshot.snapis excluded by!**/*.snapand included by**
📒 Files selected for processing (2)
crates/biome_module_graph/tests/snap/mod.rscrates/biome_module_graph/tests/spec_tests.rs
Merging this PR will not alter performance
Comparing Footnotes
|
Summary
The update of
caminocaused snapshots to be stale. This PR updates them.Test Plan
Green CI
Docs