Add project configuration and test files in JSON5 format

- Introduced new configuration files for testing, including `default.project.json5`, `client_in_folder`, and others.
- Updated existing project files to use JSON5 format, ensuring consistency across configurations.
- Added new Lua scripts and model files to support various test cases.
- Adjusted snapshot files to align with the new project structure and properties.
This commit is contained in:
Joe 2026-01-30 09:16:46 -06:00
parent 779e3de0ae
commit 84f76d48fc
118 changed files with 75 additions and 97 deletions

View file

@ -36,7 +36,7 @@ pub fn snapshot_json_model(
})?;
if let Some(top_level_name) = &instance.name {
let new_name = format!("{}.model.json", top_level_name);
let new_name = format!("{}.model.json5", top_level_name);
log::warn!(
"Model at path {} had a top-level Name field. \
@ -229,7 +229,7 @@ mod test {
fn model_from_vfs() {
let mut imfs = InMemoryFs::new();
imfs.load_snapshot(
"/foo.model.json",
"/foo.model.json5",
VfsSnapshot::file(
r#"
{
@ -254,7 +254,7 @@ mod test {
let instance_snapshot = snapshot_json_model(
&InstanceContext::default(),
&vfs,
Path::new("/foo.model.json"),
Path::new("/foo.model.json5"),
"foo",
)
.unwrap()
@ -267,7 +267,7 @@ mod test {
fn model_from_vfs_legacy() {
let mut imfs = InMemoryFs::new();
imfs.load_snapshot(
"/foo.model.json",
"/foo.model.json5",
VfsSnapshot::file(
r#"
{
@ -292,7 +292,7 @@ mod test {
let instance_snapshot = snapshot_json_model(
&InstanceContext::default(),
&vfs,
Path::new("/foo.model.json"),
Path::new("/foo.model.json5"),
"foo",
)
.unwrap()