Skip to content

Commit 3739cb1

Browse files
committed
Use string traces in ForEach ordering integration tests
Replace numeric accumulation (ModVarScene) with string concatenation (ModVarSceneTxt) in all orderBy/limit tests to make the exact iteration order and values visible in the assertion. This makes test failures much easier to diagnose since the full trace is a readable string like "10;20;30;50;" rather than a single sum. Also add gdjs.evtTools.common.toString to the GDJS mock so that ToString() expressions work in code-generation integration tests. https://claude.ai/code/session_01LXTeNz7ehNS5TqFYSU6aw5
1 parent d78e8f0 commit 3739cb1

File tree

2 files changed

+90
-114
lines changed

2 files changed

+90
-114
lines changed

GDevelop.js/TestUtils/GDJSMocks.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,6 +1035,7 @@ function makeMinimalGDJSMock(options) {
10351035
},
10361036
common: {
10371037
resolveAsyncEventsFunction: ({ task }) => task.resolve(),
1038+
toString: (num) => '' + num,
10381039
},
10391040
},
10401041
registerBehavior: (behaviorTypeName, Ctor) => {

0 commit comments

Comments
 (0)