From b95b28179f240e5a26a87830c535f2f2b96f6083 Mon Sep 17 00:00:00 2001 From: Joe Date: Sun, 1 Feb 2026 18:35:22 -0600 Subject: [PATCH] Update LocalScript references in syncback format transition tests - Changed references from `init.client.luau` to `init.local.luau` in the test for directory LocalScript to accurately reflect the script type being tested. - Updated assertions to match the new file naming convention, ensuring consistency in the test's expectations for standalone files. --- tests/tests/syncback_format_transitions.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/tests/syncback_format_transitions.rs b/tests/tests/syncback_format_transitions.rs index c267eedf..02ea73f8 100644 --- a/tests/tests/syncback_format_transitions.rs +++ b/tests/tests/syncback_format_transitions.rs @@ -206,7 +206,8 @@ fn dir_script_sync_removing_children_preserves_directory() { }); } -/// Test: Directory LocalScript (init.client.luau + children) receives sync with no children +/// Test: Directory LocalScript (init.local.luau + children) receives sync with no children +/// Note: init.local.luau produces LocalScript, NOT init.client.luau (which produces Script with Client RunContext) #[test] fn dir_localscript_sync_removing_children_preserves_directory() { run_serve_test("syncback_format_transitions", |session, _redactions| { @@ -224,11 +225,11 @@ fn dir_localscript_sync_removing_children_preserves_directory() { let src_path = session.path().join("src"); let dir_path = src_path.join("DirLocalScriptWithChildren"); - let init_file = dir_path.join("init.client.luau"); - let standalone_file = src_path.join("DirLocalScriptWithChildren.client.luau"); + let init_file = dir_path.join("init.local.luau"); + let standalone_file = src_path.join("DirLocalScriptWithChildren.local.luau"); assert_directory_exists(&dir_path, "DirLocalScriptWithChildren directory"); - assert_file_exists(&init_file, "init.client.luau"); + assert_file_exists(&init_file, "init.local.luau"); // Send sync with NO children let added = make_added_instance( @@ -243,7 +244,7 @@ fn dir_localscript_sync_removing_children_preserves_directory() { // No standalone file should be created assert_not_exists( &standalone_file, - "Standalone .client.luau should NOT be created", + "Standalone .local.luau should NOT be created", ); assert_directory_exists(&dir_path, "Directory should be preserved");