From 14c73206926c3bbcb0e4bab35848554539599e82 Mon Sep 17 00:00:00 2001 From: Matt Perry Date: Tue, 13 Feb 2024 16:12:05 +0100 Subject: [PATCH] bundle size --- packages/framer-motion-3d/package.json | 2 +- packages/framer-motion/package.json | 4 ++-- .../framer-motion/src/value/__tests__/use-spring.test.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/framer-motion-3d/package.json b/packages/framer-motion-3d/package.json index b41ff3126a..a695a8041b 100644 --- a/packages/framer-motion-3d/package.json +++ b/packages/framer-motion-3d/package.json @@ -60,5 +60,5 @@ "@react-three/test-renderer": "^9.0.0", "@rollup/plugin-commonjs": "^22.0.1" }, - "gitHead": "079347dab1cf881a80cabbd0e113cb924d44800c" + "gitHead": "789e502ed2ae98982e7f0ec10f42896fb82ee6e1" } diff --git a/packages/framer-motion/package.json b/packages/framer-motion/package.json index 5647caa3b3..4d901fc926 100644 --- a/packages/framer-motion/package.json +++ b/packages/framer-motion/package.json @@ -109,12 +109,12 @@ }, { "path": "./dist/size-webpack-dom-animation.js", - "maxSize": "19.9 kB" + "maxSize": "19.92 kB" }, { "path": "./dist/size-webpack-dom-max.js", "maxSize": "32.1 kB" } ], - "gitHead": "079347dab1cf881a80cabbd0e113cb924d44800c" + "gitHead": "789e502ed2ae98982e7f0ec10f42896fb82ee6e1" } diff --git a/packages/framer-motion/src/value/__tests__/use-spring.test.tsx b/packages/framer-motion/src/value/__tests__/use-spring.test.tsx index c0759a1c46..a18cc07607 100644 --- a/packages/framer-motion/src/value/__tests__/use-spring.test.tsx +++ b/packages/framer-motion/src/value/__tests__/use-spring.test.tsx @@ -85,7 +85,7 @@ describe("useSpring", () => { }) const resolved = await promise - console.log({ resolved }) + const testNear = (value: number, expected: number, deviation = 2) => { expect( value >= expected - deviation && value <= expected + deviation