mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 14:01:37 +00:00
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.
This commit is contained in:
parent
cd05690d8a
commit
1af3a18bcd
26 changed files with 64 additions and 87 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue