diff --git a/__tests__/Animations/Grow.test.tsx b/__tests__/Animations/Grow.test.tsx index a2b6f774..0e806354 100644 --- a/__tests__/Animations/Grow.test.tsx +++ b/__tests__/Animations/Grow.test.tsx @@ -10,7 +10,7 @@ describe("Grow", () => { render( Hello World - , + ); }); @@ -20,24 +20,10 @@ describe("Grow", () => { test("Legger til riktige animasjoner", () => { const element = screen.getByTestId("grow"); - expect(element).toHaveStyle("transform: scale(0) translateZ(0);"); + expect(element).toHaveStyle("transform: scale(0);"); }); test("Viser children", () => { expect(screen.getByText("Hello World")).toBeInTheDocument(); }); - - test("Returnerer children i motion.div element", () => { - const { container } = render(Hello World); - expect(container).toMatchInlineSnapshot(` -
-
- Hello World -
-
- `); - }); }); diff --git a/package.json b/package.json index 3881eba3..3bd77651 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "@sanity/image-url": "^1.0.2", "autoprefixer": "^10.4.19", "clsx": "^2.1.1", - "framer-motion": "^11.2.14", + "framer-motion": "^11.3.0", "jest": "^29.7.0", "next": "14.2.5", "next-sanity": "^9.4.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9aecc9a1..a43977cf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -27,8 +27,8 @@ importers: specifier: ^2.1.1 version: 2.1.1 framer-motion: - specifier: ^11.2.14 - version: 11.2.14(@emotion/is-prop-valid@1.2.2)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: ^11.3.0 + version: 11.3.0(@emotion/is-prop-valid@1.2.2)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) jest: specifier: ^29.7.0 version: 29.7.0(@types/node@20.14.10) @@ -3576,8 +3576,8 @@ packages: react-dom: optional: true - framer-motion@11.2.14: - resolution: {integrity: sha512-0Nwg++Jymj4Yn7LFKH/nKuGrgVZTEIgIbLjl+LBBFBEzNd4rX+n3z/doqjEbvjk1xcmsim9h7du2+LTYdQTULw==} + framer-motion@11.3.0: + resolution: {integrity: sha512-hjYjMUQaWuqilwRr5kC0CunHZFVMtKWHy/IdL/LPRBD0C491DKTvYwQRJ5qRXEAOT+Rth7Vi4XBe4TA4bFOn3A==} peerDependencies: '@emotion/is-prop-valid': '*' react: ^18.0.0 @@ -10576,7 +10576,7 @@ snapshots: eslint: 9.6.0 eslint-import-resolver-node: 0.3.9 eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@7.2.0(eslint@9.6.0)(typescript@5.5.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(eslint@9.6.0))(eslint@9.6.0) - eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.2.0(eslint@9.6.0)(typescript@5.5.3))(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.2.0(eslint@9.6.0)(typescript@5.5.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(eslint@9.6.0))(eslint@9.6.0))(eslint@9.6.0) + eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.2.0(eslint@9.6.0)(typescript@5.5.3))(eslint-import-resolver-typescript@3.6.1)(eslint@9.6.0) eslint-plugin-jsx-a11y: 6.9.0(eslint@9.6.0) eslint-plugin-react: 7.34.3(eslint@9.6.0) eslint-plugin-react-hooks: 4.6.2(eslint@9.6.0) @@ -10600,7 +10600,7 @@ snapshots: enhanced-resolve: 5.17.0 eslint: 9.6.0 eslint-module-utils: 2.8.1(@typescript-eslint/parser@7.2.0(eslint@9.6.0)(typescript@5.5.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.2.0(eslint@9.6.0)(typescript@5.5.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(eslint@9.6.0))(eslint@9.6.0))(eslint@9.6.0) - eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.2.0(eslint@9.6.0)(typescript@5.5.3))(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.2.0(eslint@9.6.0)(typescript@5.5.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(eslint@9.6.0))(eslint@9.6.0))(eslint@9.6.0) + eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.2.0(eslint@9.6.0)(typescript@5.5.3))(eslint-import-resolver-typescript@3.6.1)(eslint@9.6.0) fast-glob: 3.3.2 get-tsconfig: 4.7.5 is-core-module: 2.14.0 @@ -10622,7 +10622,7 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.2.0(eslint@9.6.0)(typescript@5.5.3))(eslint-import-resolver-typescript@3.6.1(@typescript-eslint/parser@7.2.0(eslint@9.6.0)(typescript@5.5.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(eslint@9.6.0))(eslint@9.6.0))(eslint@9.6.0): + eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.2.0(eslint@9.6.0)(typescript@5.5.3))(eslint-import-resolver-typescript@3.6.1)(eslint@9.6.0): dependencies: array-includes: 3.1.8 array.prototype.findlastindex: 1.2.5 @@ -11000,7 +11000,7 @@ snapshots: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - framer-motion@11.2.14(@emotion/is-prop-valid@1.2.2)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + framer-motion@11.3.0(@emotion/is-prop-valid@1.2.2)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: tslib: 2.6.3 optionalDependencies: