-
-
Notifications
You must be signed in to change notification settings - Fork 897
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cbeafb2
commit 97f7cb2
Showing
4 changed files
with
35 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"private": true, | ||
"types": "../dist/client.d.ts", | ||
"types": "../dist/types/client.d.ts", | ||
"main": "../dist/cjs/client.js", | ||
"module": "../dist/es/client.mjs" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
packages/framer-motion/src/motion/__tests__/types.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { motion, useMotionValue } from "framer-motion" | ||
import * as clientMotion from "framer-motion/client" | ||
import * as React from "react" | ||
import { render } from "../../../jest.setup" | ||
|
||
describe("accepts motion values into both motion components from both entry points", () => { | ||
it("renders", () => { | ||
function Component() { | ||
const x = useMotionValue(0) | ||
return ( | ||
<> | ||
<motion.div style={{ x }} /> | ||
<clientMotion.div style={{ x }} /> | ||
</> | ||
) | ||
} | ||
|
||
render(<Component />) | ||
}) | ||
}) |