Update snapshot files to reflect changes in module structure and properties

- Changed various instances from Folder to ModuleScript in snapshot files to align with updated project structure.
- Added new ModuleScript instances with appropriate properties in multiple test snapshots, enhancing test coverage for module handling.
- Updated project names in syncback snapshots to ensure consistency with the new structure.
This commit is contained in:
Joe 2026-01-30 09:28:22 -06:00
parent f08a4d21e7
commit 4aac7d0d48
35 changed files with 390 additions and 114 deletions

View file

@ -3,9 +3,11 @@ source: tests/tests/build.rs
expression: contents
---
<roblox version="4">
<Item class="Folder" referent="0">
<Item class="Script" referent="0">
<Properties>
<string name="Name">client_init</string>
<token name="RunContext">2</token>
<string name="Source">return "From folder/init.client.luau"</string>
</Properties>
</Item>
</roblox>

View file

@ -11,11 +11,23 @@ expression: contents
<Properties>
<string name="Name">src</string>
</Properties>
<Item class="ModuleScript" referent="2">
<Properties>
<string name="Name">outer.spec</string>
<string name="Source">-- This file should be included.</string>
</Properties>
</Item>
</Item>
<Item class="Folder" referent="2">
<Item class="Folder" referent="3">
<Properties>
<string name="Name">subproject</string>
</Properties>
<Item class="ModuleScript" referent="4">
<Properties>
<string name="Name">inner</string>
<string name="Source">-- This file should be included.</string>
</Properties>
</Item>
</Item>
</Item>
</roblox>

View file

@ -7,5 +7,11 @@ expression: contents
<Properties>
<string name="Name">ignore_glob_nested</string>
</Properties>
<Item class="ModuleScript" referent="1">
<Properties>
<string name="Name">include</string>
<string name="Source">-- This file must be present.</string>
</Properties>
</Item>
</Item>
</roblox>

View file

@ -7,5 +7,11 @@ expression: contents
<Properties>
<string name="Name">ignore_glob_spec</string>
</Properties>
<Item class="ModuleScript" referent="1">
<Properties>
<string name="Name">shouldBeIncluded</string>
<string name="Source">-- this file should be present</string>
</Properties>
</Item>
</Item>
</roblox>

View file

@ -3,9 +3,16 @@ source: tests/tests/build.rs
expression: contents
---
<roblox version="4">
<Item class="Folder" referent="0">
<Item class="ModuleScript" referent="0">
<Properties>
<string name="Name">init_with_children</string>
<string name="Source">-- init.lua</string>
</Properties>
<Item class="ModuleScript" referent="1">
<Properties>
<string name="Name">other</string>
<string name="Source">-- other.lua</string>
</Properties>
</Item>
</Item>
</roblox>

View file

@ -7,5 +7,11 @@ expression: contents
<Properties>
<string name="Name">module_in_folder</string>
</Properties>
<Item class="ModuleScript" referent="1">
<Properties>
<string name="Name">aModule</string>
<string name="Source">-- This is a Lua module</string>
</Properties>
</Item>
</Item>
</roblox>

View file

@ -3,9 +3,10 @@ source: tests/tests/build.rs
expression: contents
---
<roblox version="4">
<Item class="Folder" referent="0">
<Item class="ModuleScript" referent="0">
<Properties>
<string name="Name">module_init</string>
<string name="Source">return "From folder/init.luau"</string>
</Properties>
</Item>
</roblox>