Skip to content

Commit c312ce7

Browse files
test(studio): import commitGsapPositionFromDrag from its actual module
The function was split out into gsapDragPositionCommit.ts in #1605, but the test kept importing it from ./gsapDragCommit, which no longer exports it — yielding `is not a function` at runtime. Import from the correct module to match the production import in gsapRuntimeBridge.ts. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 864d2ac commit c312ce7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/studio/src/hooks/gsapDragCommit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { describe, expect, it, beforeEach } from "vitest";
22
import type { GsapAnimation } from "@hyperframes/core/gsap-parser";
33
import type { DomEditSelection } from "../components/editor/domEditingTypes";
44
import {
5-
commitGsapPositionFromDrag,
65
commitStaticGsapPosition,
76
commitStaticGsapRotation,
87
parkPlayheadOnKeyframe,
98
type GsapDragCommitCallbacks,
109
} from "./gsapDragCommit";
10+
import { commitGsapPositionFromDrag } from "./gsapDragPositionCommit";
1111
import { usePlayerStore } from "../player/store/playerStore";
1212

1313
// Minimal selection whose element has no drag-baseline attributes (origX/Y = 0).

0 commit comments

Comments
 (0)