diff --git a/apps/common-app/src/examples/RuntimeTests/ReJest/TestRunner/UpdatesContainer.ts b/apps/common-app/src/examples/RuntimeTests/ReJest/TestRunner/UpdatesContainer.ts index d6f5609f214..39debbb1fc0 100644 --- a/apps/common-app/src/examples/RuntimeTests/ReJest/TestRunner/UpdatesContainer.ts +++ b/apps/common-app/src/examples/RuntimeTests/ReJest/TestRunner/UpdatesContainer.ts @@ -23,7 +23,7 @@ type NativeUpdate = { export function createUpdatesContainer() { const jsUpdates = makeMutable>([]); const nativeSnapshots = makeMutable>([]); - const brokenNativeSnapshotsOnFabric = makeMutable(false); + const unimplementedNativeSnapshotsOnFabric = makeMutable(false); function _updateNativeSnapshot(updateInfos: JsUpdate[], jsUpdateIndex: number): void { 'worklet'; @@ -52,6 +52,7 @@ export function createUpdatesContainer() { function _updateJsSnapshot(newUpdates: JsUpdate[]): void { 'worklet'; + jsUpdates.modify(updates => { for (const update of newUpdates) { updates.push(update); @@ -93,7 +94,7 @@ export function createUpdatesContainer() { // TODO Implement native snapshots for layout animations on Fabric _updateNativeSnapshot([{ tag, update }], jsUpdates.value.length - 1); } else { - brokenNativeSnapshotsOnFabric.value = true; + unimplementedNativeSnapshotsOnFabric.value = true; } jsUpdates.modify(updates => { updates.push({ @@ -160,7 +161,7 @@ export function createUpdatesContainer() { } async function getNativeSnapshots(component?: TestComponent, propsNames: string[] = []): Promise { - if (brokenNativeSnapshotsOnFabric.value) { + if (unimplementedNativeSnapshotsOnFabric.value) { return []; } const nativeSnapshotsCount = nativeSnapshots.value.length; diff --git a/apps/common-app/src/examples/RuntimeTests/tests/animations/withDecay/basic.test.tsx b/apps/common-app/src/examples/RuntimeTests/tests/animations/withDecay/basic.test.tsx index 3401382081a..de709f69eef 100644 --- a/apps/common-app/src/examples/RuntimeTests/tests/animations/withDecay/basic.test.tsx +++ b/apps/common-app/src/examples/RuntimeTests/tests/animations/withDecay/basic.test.tsx @@ -51,7 +51,7 @@ describe('withDecay animation, test various config', () => { { velocity: 900, clamp: [0, 150], rubberBandEffect: true }, { velocity: 2000, clamp: [0, 150], rubberBandEffect: true }, { velocity: 2000, clamp: [0, 150], rubberBandEffect: true, rubberBandFactor: 2 }, - ] as Array)('Config ${0}', async config => { + ] as Array)('Config %p', async config => { const snapshotName = ('decay_' + Object.entries(config) .map(([key, val]) => {