Improve snapshot testing (#5856)

* Improve snapshot testing

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* A snapshot a day keeps the bugs away! 📷🐛

* A snapshot a day keeps the bugs away! 📷🐛

---------

Signed-off-by: Nick Cameron <nrc@ncameron.org>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Nick Cameron
2025-03-20 11:06:27 +13:00
committed by GitHub
parent 4b6166dc4f
commit a7e09a89ef
551 changed files with 115788 additions and 275855 deletions

View File

@ -5,11 +5,7 @@ description: Artifact commands import_foreign.kcl
[
{
"cmdId": "[uuid]",
"range": [
0,
0,
0
],
"range": [],
"command": {
"type": "edge_lines_visible",
"hidden": false
@ -17,11 +13,7 @@ description: Artifact commands import_foreign.kcl
},
{
"cmdId": "[uuid]",
"range": [
0,
0,
0
],
"range": [],
"command": {
"type": "set_scene_units",
"unit": "mm"
@ -29,11 +21,7 @@ description: Artifact commands import_foreign.kcl
},
{
"cmdId": "[uuid]",
"range": [
0,
0,
0
],
"range": [],
"command": {
"type": "object_visible",
"object_id": "[uuid]",
@ -42,11 +30,7 @@ description: Artifact commands import_foreign.kcl
},
{
"cmdId": "[uuid]",
"range": [
0,
0,
0
],
"range": [],
"command": {
"type": "object_visible",
"object_id": "[uuid]",
@ -55,11 +39,7 @@ description: Artifact commands import_foreign.kcl
},
{
"cmdId": "[uuid]",
"range": [
0,
36,
0
],
"range": [],
"command": {
"type": "import_files",
"files": [

View File

@ -1,12 +1,12 @@
---
source: kcl/src/simulation_tests.rs
source: kcl-lib/src/simulation_tests.rs
description: Result of parsing import_foreign.kcl
---
{
"Ok": {
"body": [
{
"end": 36,
"end": 0,
"path": {
"type": "Foreign",
"path": "../inputs/cube.gltf"
@ -14,9 +14,9 @@ description: Result of parsing import_foreign.kcl
"selector": {
"type": "None",
"alias": {
"end": 36,
"end": 0,
"name": "cube",
"start": 32,
"start": 0,
"type": "Identifier"
}
},
@ -26,37 +26,37 @@ description: Result of parsing import_foreign.kcl
},
{
"declaration": {
"end": 50,
"end": 0,
"id": {
"end": 43,
"end": 0,
"name": "model",
"start": 38,
"start": 0,
"type": "Identifier"
},
"init": {
"end": 50,
"end": 0,
"name": "cube",
"start": 46,
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"start": 38,
"start": 0,
"type": "VariableDeclarator"
},
"end": 50,
"end": 0,
"kind": "const",
"start": 38,
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
}
],
"end": 51,
"end": 0,
"nonCodeMeta": {
"nonCodeNodes": {
"0": [
{
"end": 38,
"start": 36,
"end": 0,
"start": 0,
"type": "NonCodeNode",
"value": {
"type": "newLine"

View File

@ -0,0 +1,7 @@
---
source: kcl-lib/src/simulation_tests.rs
description: Result of unparsing import_foreign.kcl
---
import "../inputs/cube.gltf" as cube
model = cube