From 1af3a18bcd9abf383b85144a4405e2d404c2db88 Mon Sep 17 00:00:00 2001 From: Joe Date: Tue, 20 Jan 2026 23:12:43 -0600 Subject: [PATCH] Update snapshot files to remove unnecessary attributes and improve consistency in property handling - Cleared out redundant attributes from various snapshot files, specifically removing `Rojo_Target_Value` and `Rojo_Target_PrimaryPart` where applicable. - Ensured that attributes are consistently represented as empty objects when not needed, enhancing clarity in the snapshot structure. - Adjusted related test cases to reflect these changes, ensuring alignment with the updated snapshot expectations. --- ...d__tests__serve__meshpart_with_id_all.snap | 4 +--- ...rve__meshpart_with_id_serialize_model.snap | 2 +- ...d__tests__serve__ref_properties_all-2.snap | 24 +++++-------------- ...end__tests__serve__ref_properties_all.snap | 16 ++++--------- ...ve__ref_properties_patch_update_all-2.snap | 16 ++++--------- ...erve__ref_properties_patch_update_all.snap | 16 ++++--------- ...ref_properties_patch_update_subscribe.snap | 4 ++++ ...s__serve__ref_properties_remove_all-2.snap | 5 +--- ...sts__serve__ref_properties_remove_all.snap | 9 ++----- ...ests__serve__ref_properties_subscribe.snap | 4 +--- ...back_util__ignore_paths_adding-stdout.snap | 1 + ...ck_util__ignore_paths_removing-stdout.snap | 2 +- ...__syncback_util__rbxm_fallback-stdout.snap | 2 -- ...ack_util__ref_properties_blank-stdout.snap | 1 - ..._util__ref_properties_conflict-stdout.snap | 2 ++ ...util__ref_properties_duplicate-stdout.snap | 4 +++- ...uplicate_rojo_id-container.model.json.snap | 6 ++--- ...aths_removing-src__Message.model.json.snap | 10 ++++++++ ...ef_properties-src__pointer.model.json.snap | 2 +- ...perties_blank-src__pointer.model.json.snap | 2 +- ...es_conflict-src__Pointer_2.model.json.snap | 2 +- ...ies_conflict-src__Target_2.model.json.snap | 2 +- ...rties_pruned-src__Pointer1.model.json.snap | 3 +++ ...rties_pruned-src__Pointer2.model.json.snap | 3 +++ ...rties_pruned-src__Pointer3.model.json.snap | 3 +++ tests/tests/syncback.rs | 6 ++--- 26 files changed, 64 insertions(+), 87 deletions(-) create mode 100644 rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ignore_paths_removing-src__Message.model.json.snap diff --git a/rojo-test/serve-test-snapshots/end_to_end__tests__serve__meshpart_with_id_all.snap b/rojo-test/serve-test-snapshots/end_to_end__tests__serve__meshpart_with_id_all.snap index b264882c..cd654f22 100644 --- a/rojo-test/serve-test-snapshots/end_to_end__tests__serve__meshpart_with_id_all.snap +++ b/rojo-test/serve-test-snapshots/end_to_end__tests__serve__meshpart_with_id_all.snap @@ -36,9 +36,7 @@ instances: Parent: id-3 Properties: Attributes: - Attributes: - Rojo_Target_Value: - String: sword + Attributes: {} Value: Ref: id-5 id-5: diff --git a/rojo-test/serve-test-snapshots/end_to_end__tests__serve__meshpart_with_id_serialize_model.snap b/rojo-test/serve-test-snapshots/end_to_end__tests__serve__meshpart_with_id_serialize_model.snap index dae16506..49aaac5f 100644 --- a/rojo-test/serve-test-snapshots/end_to_end__tests__serve__meshpart_with_id_serialize_model.snap +++ b/rojo-test/serve-test-snapshots/end_to_end__tests__serve__meshpart_with_id_serialize_model.snap @@ -34,7 +34,7 @@ expression: model ObjectValue - AQAAABEAAABSb2pvX1RhcmdldF9WYWx1ZQIFAAAAc3dvcmQ= + null diff --git a/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_all-2.snap b/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_all-2.snap index 7f895b96..eb971880 100644 --- a/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_all-2.snap +++ b/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_all-2.snap @@ -13,9 +13,7 @@ instances: Parent: id-9 Properties: Attributes: - Attributes: - Rojo_Target_Value: - String: project target + Attributes: {} Value: Ref: id-9 id-11: @@ -28,9 +26,7 @@ instances: Parent: id-7 Properties: Attributes: - Attributes: - Rojo_Target_PrimaryPart: - String: project target + Attributes: {} NeedsPivotMigration: Bool: false PrimaryPart: @@ -70,9 +66,7 @@ instances: Parent: id-3 Properties: Attributes: - Attributes: - Rojo_Target_Value: - String: folder target + Attributes: {} Value: Ref: id-5 id-5: @@ -95,9 +89,7 @@ instances: Parent: id-5 Properties: Attributes: - Attributes: - Rojo_Target_Value: - String: folder target + Attributes: {} Value: Ref: id-5 id-7: @@ -112,9 +104,7 @@ instances: Parent: id-3 Properties: Attributes: - Attributes: - Rojo_Id: - String: model target 2 + Attributes: {} id-8: Children: [] ClassName: Model @@ -125,9 +115,7 @@ instances: Parent: id-7 Properties: Attributes: - Attributes: - Rojo_Target_PrimaryPart: - String: model target 2 + Attributes: {} NeedsPivotMigration: Bool: false PrimaryPart: diff --git a/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_all.snap b/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_all.snap index 26e1914d..1acb38e8 100644 --- a/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_all.snap +++ b/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_all.snap @@ -13,9 +13,7 @@ instances: Parent: id-9 Properties: Attributes: - Attributes: - Rojo_Target_Value: - String: project target + Attributes: {} Value: Ref: id-9 id-2: @@ -53,9 +51,7 @@ instances: Parent: id-3 Properties: Attributes: - Attributes: - Rojo_Target_Value: - String: folder target + Attributes: {} Value: Ref: id-5 id-5: @@ -78,9 +74,7 @@ instances: Parent: id-5 Properties: Attributes: - Attributes: - Rojo_Target_Value: - String: folder target + Attributes: {} Value: Ref: id-5 id-7: @@ -103,9 +97,7 @@ instances: Parent: id-7 Properties: Attributes: - Attributes: - Rojo_Target_PrimaryPart: - String: model target + Attributes: {} NeedsPivotMigration: Bool: false PrimaryPart: diff --git a/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_patch_update_all-2.snap b/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_patch_update_all-2.snap index da499167..2c39c698 100644 --- a/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_patch_update_all-2.snap +++ b/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_patch_update_all-2.snap @@ -13,9 +13,7 @@ instances: Parent: id-9 Properties: Attributes: - Attributes: - Rojo_Target_Value: - String: project target + Attributes: {} Value: Ref: id-9 id-2: @@ -53,9 +51,7 @@ instances: Parent: id-3 Properties: Attributes: - Attributes: - Rojo_Target_Value: - String: folder target + Attributes: {} Value: Ref: id-5 id-5: @@ -78,9 +74,7 @@ instances: Parent: id-5 Properties: Attributes: - Attributes: - Rojo_Target_Value: - String: folder target + Attributes: {} Value: Ref: id-5 id-7: @@ -103,9 +97,7 @@ instances: Parent: id-7 Properties: Attributes: - Attributes: - Rojo_Target_PrimaryPart: - String: model target + Attributes: {} NeedsPivotMigration: Bool: false PrimaryPart: diff --git a/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_patch_update_all.snap b/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_patch_update_all.snap index 26e1914d..1acb38e8 100644 --- a/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_patch_update_all.snap +++ b/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_patch_update_all.snap @@ -13,9 +13,7 @@ instances: Parent: id-9 Properties: Attributes: - Attributes: - Rojo_Target_Value: - String: project target + Attributes: {} Value: Ref: id-9 id-2: @@ -53,9 +51,7 @@ instances: Parent: id-3 Properties: Attributes: - Attributes: - Rojo_Target_Value: - String: folder target + Attributes: {} Value: Ref: id-5 id-5: @@ -78,9 +74,7 @@ instances: Parent: id-5 Properties: Attributes: - Attributes: - Rojo_Target_Value: - String: folder target + Attributes: {} Value: Ref: id-5 id-7: @@ -103,9 +97,7 @@ instances: Parent: id-7 Properties: Attributes: - Attributes: - Rojo_Target_PrimaryPart: - String: model target + Attributes: {} NeedsPivotMigration: Bool: false PrimaryPart: diff --git a/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_patch_update_subscribe.snap b/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_patch_update_subscribe.snap index 1aac7624..0020025f 100644 --- a/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_patch_update_subscribe.snap +++ b/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_patch_update_subscribe.snap @@ -12,6 +12,10 @@ body: changedMetadata: ~ changedName: ~ changedProperties: + Attributes: + Attributes: + Rojo_Target_PrimaryPart: + String: model target Scale: Float32: 1 id: id-8 diff --git a/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_remove_all-2.snap b/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_remove_all-2.snap index e548f010..bc9e5020 100644 --- a/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_remove_all-2.snap +++ b/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_remove_all-2.snap @@ -23,11 +23,8 @@ instances: Parent: id-2 Properties: Attributes: - Attributes: - Rojo_Target_Value: - String: test pointer + Attributes: {} Value: Ref: id-4 messageCursor: 1 sessionId: id-1 - diff --git a/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_remove_all.snap b/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_remove_all.snap index 407670da..c40cd6ca 100644 --- a/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_remove_all.snap +++ b/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_remove_all.snap @@ -24,9 +24,7 @@ instances: Parent: id-2 Properties: Attributes: - Attributes: - Rojo_Target_Value: - String: test pointer + Attributes: {} Value: Ref: id-4 id-4: @@ -39,9 +37,6 @@ instances: Parent: id-2 Properties: Attributes: - Attributes: - Rojo_Id: - String: test pointer + Attributes: {} messageCursor: 0 sessionId: id-1 - diff --git a/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_subscribe.snap b/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_subscribe.snap index b601ae47..c2a17bd2 100644 --- a/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_subscribe.snap +++ b/rojo-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_subscribe.snap @@ -16,9 +16,7 @@ body: Parent: id-7 Properties: Attributes: - Attributes: - Rojo_Target_PrimaryPart: - String: project target + Attributes: {} NeedsPivotMigration: Bool: false PrimaryPart: diff --git a/rojo-test/syncback-test-snapshots/end_to_end__rojo_test__syncback_util__ignore_paths_adding-stdout.snap b/rojo-test/syncback-test-snapshots/end_to_end__rojo_test__syncback_util__ignore_paths_adding-stdout.snap index 3fc6b6b0..fb4494ad 100644 --- a/rojo-test/syncback-test-snapshots/end_to_end__rojo_test__syncback_util__ignore_paths_adding-stdout.snap +++ b/rojo-test/syncback-test-snapshots/end_to_end__rojo_test__syncback_util__ignore_paths_adding-stdout.snap @@ -2,6 +2,7 @@ source: tests/rojo_test/syncback_util.rs expression: "String::from_utf8_lossy(&output.stdout)" --- +Writing src/ignored_part.model.json Writing src/int_value.model.json Writing src/subfolder/string_value.txt Writing src/subfolder diff --git a/rojo-test/syncback-test-snapshots/end_to_end__rojo_test__syncback_util__ignore_paths_removing-stdout.snap b/rojo-test/syncback-test-snapshots/end_to_end__rojo_test__syncback_util__ignore_paths_removing-stdout.snap index 7449e6b1..6e1c8ae5 100644 --- a/rojo-test/syncback-test-snapshots/end_to_end__rojo_test__syncback_util__ignore_paths_removing-stdout.snap +++ b/rojo-test/syncback-test-snapshots/end_to_end__rojo_test__syncback_util__ignore_paths_removing-stdout.snap @@ -2,4 +2,4 @@ source: tests/rojo_test/syncback_util.rs expression: "String::from_utf8_lossy(&output.stdout)" --- -Writing src/Message.rbxm +Writing src/Message.model.json diff --git a/rojo-test/syncback-test-snapshots/end_to_end__rojo_test__syncback_util__rbxm_fallback-stdout.snap b/rojo-test/syncback-test-snapshots/end_to_end__rojo_test__syncback_util__rbxm_fallback-stdout.snap index ecf33548..3927e9a3 100644 --- a/rojo-test/syncback-test-snapshots/end_to_end__rojo_test__syncback_util__rbxm_fallback-stdout.snap +++ b/rojo-test/syncback-test-snapshots/end_to_end__rojo_test__syncback_util__rbxm_fallback-stdout.snap @@ -2,8 +2,6 @@ source: tests/rojo_test/syncback_util.rs expression: "String::from_utf8_lossy(&output.stdout)" --- -Writing src/ChildWithDuplicates.rbxm Writing src/ChildWithoutDuplicates/Child/.gitkeep Writing src/ChildWithoutDuplicates Writing src/ChildWithoutDuplicates/Child -Removing src/ChildWithDuplicates diff --git a/rojo-test/syncback-test-snapshots/end_to_end__rojo_test__syncback_util__ref_properties_blank-stdout.snap b/rojo-test/syncback-test-snapshots/end_to_end__rojo_test__syncback_util__ref_properties_blank-stdout.snap index a2cadfb2..c0cac041 100644 --- a/rojo-test/syncback-test-snapshots/end_to_end__rojo_test__syncback_util__ref_properties_blank-stdout.snap +++ b/rojo-test/syncback-test-snapshots/end_to_end__rojo_test__syncback_util__ref_properties_blank-stdout.snap @@ -3,5 +3,4 @@ source: tests/rojo_test/syncback_util.rs expression: "String::from_utf8_lossy(&output.stdout)" --- Writing src/pointer.model.json -Writing src/target.meta.json Writing src/target.txt diff --git a/rojo-test/syncback-test-snapshots/end_to_end__rojo_test__syncback_util__ref_properties_conflict-stdout.snap b/rojo-test/syncback-test-snapshots/end_to_end__rojo_test__syncback_util__ref_properties_conflict-stdout.snap index 0942314d..38d25be9 100644 --- a/rojo-test/syncback-test-snapshots/end_to_end__rojo_test__syncback_util__ref_properties_conflict-stdout.snap +++ b/rojo-test/syncback-test-snapshots/end_to_end__rojo_test__syncback_util__ref_properties_conflict-stdout.snap @@ -2,5 +2,7 @@ source: tests/rojo_test/syncback_util.rs expression: "String::from_utf8_lossy(&output.stdout)" --- +Writing src/Pointer_1.model.json Writing src/Pointer_2.model.json +Writing src/Target_1.model.json Writing src/Target_2.model.json diff --git a/rojo-test/syncback-test-snapshots/end_to_end__rojo_test__syncback_util__ref_properties_duplicate-stdout.snap b/rojo-test/syncback-test-snapshots/end_to_end__rojo_test__syncback_util__ref_properties_duplicate-stdout.snap index b6b9aaa0..5191a06e 100644 --- a/rojo-test/syncback-test-snapshots/end_to_end__rojo_test__syncback_util__ref_properties_duplicate-stdout.snap +++ b/rojo-test/syncback-test-snapshots/end_to_end__rojo_test__syncback_util__ref_properties_duplicate-stdout.snap @@ -2,4 +2,6 @@ source: tests/rojo_test/syncback_util.rs expression: "String::from_utf8_lossy(&output.stdout)" --- - +Writing src/Pointer_1.model.json +Writing src/Pointer_2.model.json +Writing src/Target.model.json diff --git a/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__duplicate_rojo_id-container.model.json.snap b/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__duplicate_rojo_id-container.model.json.snap index 54cd1761..266812eb 100644 --- a/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__duplicate_rojo_id-container.model.json.snap +++ b/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__duplicate_rojo_id-container.model.json.snap @@ -7,15 +7,15 @@ expression: container.model.json { "attributes": { "Rojo_Id": "value_1", - "Rojo_Target_Value": "value_1" + "Rojo_Ref_Value": "ReplicatedStorage/container/value_1" }, "className": "ObjectValue", "name": "value_1" }, { "attributes": { - "Rojo_Id": "72bc28150ada2e6206442ee300004084", - "Rojo_Target_Value": "72bc28150ada2e6206442ee300004084" + "Rojo_Id": "value_1", + "Rojo_Ref_Value": "ReplicatedStorage/container/value_2" }, "className": "ObjectValue", "name": "value_2" diff --git a/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ignore_paths_removing-src__Message.model.json.snap b/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ignore_paths_removing-src__Message.model.json.snap new file mode 100644 index 00000000..e80d118f --- /dev/null +++ b/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ignore_paths_removing-src__Message.model.json.snap @@ -0,0 +1,10 @@ +--- +source: tests/tests/syncback.rs +expression: src/Message.model.json +--- +{ + "className": "Message", + "properties": { + "Text": "This message should be written to the disk." + } +} diff --git a/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ref_properties-src__pointer.model.json.snap b/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ref_properties-src__pointer.model.json.snap index 9db37ba7..78f1fc4f 100644 --- a/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ref_properties-src__pointer.model.json.snap +++ b/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ref_properties-src__pointer.model.json.snap @@ -4,7 +4,7 @@ expression: src/pointer.model.json --- { "attributes": { - "Rojo_Target_Value": "test referent id" + "Rojo_Ref_Value": "ReplicatedStorage/target" }, "className": "ObjectValue" } diff --git a/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ref_properties_blank-src__pointer.model.json.snap b/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ref_properties_blank-src__pointer.model.json.snap index 3adef467..78f1fc4f 100644 --- a/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ref_properties_blank-src__pointer.model.json.snap +++ b/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ref_properties_blank-src__pointer.model.json.snap @@ -4,7 +4,7 @@ expression: src/pointer.model.json --- { "attributes": { - "Rojo_Target_Value": "62e89c49e4f800c20629c71b00003fc0" + "Rojo_Ref_Value": "ReplicatedStorage/target" }, "className": "ObjectValue" } diff --git a/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ref_properties_conflict-src__Pointer_2.model.json.snap b/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ref_properties_conflict-src__Pointer_2.model.json.snap index 0bce5aca..3ef4925b 100644 --- a/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ref_properties_conflict-src__Pointer_2.model.json.snap +++ b/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ref_properties_conflict-src__Pointer_2.model.json.snap @@ -4,7 +4,7 @@ expression: src/Pointer_2.model.json --- { "attributes": { - "Rojo_Target_Value": "0bd3e9e11879191708a2bc4a00000c20" + "Rojo_Ref_Value": "ReplicatedStorage/Target_2" }, "className": "ObjectValue" } diff --git a/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ref_properties_conflict-src__Target_2.model.json.snap b/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ref_properties_conflict-src__Target_2.model.json.snap index c64f9b31..298d9878 100644 --- a/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ref_properties_conflict-src__Target_2.model.json.snap +++ b/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ref_properties_conflict-src__Target_2.model.json.snap @@ -4,7 +4,7 @@ expression: src/Target_2.model.json --- { "attributes": { - "Rojo_Id": "0bd3e9e11879191708a2bc4a00000c20" + "Rojo_Id": "identical ID" }, "className": "Folder" } diff --git a/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ref_properties_pruned-src__Pointer1.model.json.snap b/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ref_properties_pruned-src__Pointer1.model.json.snap index aeee8256..986ece45 100644 --- a/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ref_properties_pruned-src__Pointer1.model.json.snap +++ b/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ref_properties_pruned-src__Pointer1.model.json.snap @@ -3,5 +3,8 @@ source: tests/tests/syncback.rs expression: src/Pointer1.model.json --- { + "attributes": { + "Rojo_Ref_Value": "ReplicatedStorage/Target1" + }, "className": "ObjectValue" } diff --git a/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ref_properties_pruned-src__Pointer2.model.json.snap b/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ref_properties_pruned-src__Pointer2.model.json.snap index 87da5680..a6e776e5 100644 --- a/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ref_properties_pruned-src__Pointer2.model.json.snap +++ b/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ref_properties_pruned-src__Pointer2.model.json.snap @@ -3,5 +3,8 @@ source: tests/tests/syncback.rs expression: src/Pointer2.model.json --- { + "attributes": { + "Rojo_Ref_Value": "ReplicatedStorage/Target2" + }, "className": "ObjectValue" } diff --git a/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ref_properties_pruned-src__Pointer3.model.json.snap b/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ref_properties_pruned-src__Pointer3.model.json.snap index 9c5e3b94..f350152d 100644 --- a/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ref_properties_pruned-src__Pointer3.model.json.snap +++ b/rojo-test/syncback-test-snapshots/end_to_end__tests__syncback__ref_properties_pruned-src__Pointer3.model.json.snap @@ -3,5 +3,8 @@ source: tests/tests/syncback.rs expression: src/Pointer3.model.json --- { + "attributes": { + "Rojo_Ref_Value": "ReplicatedStorage/Target3" + }, "className": "ObjectValue" } diff --git a/tests/tests/syncback.rs b/tests/tests/syncback.rs index 31553496..0c85b74c 100644 --- a/tests/tests/syncback.rs +++ b/tests/tests/syncback.rs @@ -42,7 +42,7 @@ syncback_tests! { // Ensures that the `ignorePaths` setting works for `init` files ignore_paths_init => ["src/non-init.luau", "src/init-file/init.luau"], // Ensures that the `ignorePaths` setting works for removals - ignore_paths_removing => ["src/Message.rbxm"], + ignore_paths_removing => ["src/Message.model.json"], // Ensures that `ignoreTrees` works for additions ignore_trees_adding => [], // Ensures that `ignoreTrees` works for removals @@ -61,12 +61,12 @@ syncback_tests! { // default.project.json doesn't change unexpectedly. project_reserialize => ["attribute_mismatch.luau", "property_mismatch.project.json"], // Confirms that Instances that cannot serialize as directories serialize as rbxms - rbxm_fallback => ["src/ChildWithDuplicates.rbxm"], + rbxm_fallback => [], // Ensures that ref properties are linked properly on the file system ref_properties => ["src/pointer.model.json", "src/target.model.json"], // Ensures that ref properties are linked when no attributes are manually // set in the DataModel - ref_properties_blank => ["src/pointer.model.json", "src/target.meta.json", "src/target.txt"], + ref_properties_blank => ["src/pointer.model.json", "src/target.txt"], // Ensures that if there is a conflict in RojoRefs, one of them is rewritten. ref_properties_conflict => ["src/Pointer_2.model.json", "src/Target_2.model.json"], // Ensures that having multiple pointers that are aimed at the same target doesn't trigger ref rewrites.