File tree Expand file tree Collapse file tree 3 files changed +522
-518
lines changed Expand file tree Collapse file tree 3 files changed +522
-518
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,15 @@ if (typeof global.fetch === 'undefined') {
2727 } as Response )
2828}
2929
30+ // Mock framer-motion due to how Jest 30 ESM resolution treats
31+ // motion-dom's internal .mjs imports as "outside test scope".
32+ jest . mock ( 'framer-motion' , ( ) => {
33+ return {
34+ ...jest . requireActual ( 'framer-motion' ) ,
35+ LazyMotion : ( { children } ) => children ,
36+ }
37+ } )
38+
3039jest . mock ( 'next-auth/react' , ( ) => {
3140 return {
3241 ...jest . requireActual ( 'next-auth/react' ) ,
Original file line number Diff line number Diff line change 8282 "@tailwindcss/postcss" : " ^4.1.14" ,
8383 "@testing-library/jest-dom" : " ^6.9.1" ,
8484 "@testing-library/react" : " ^16.3.0" ,
85- "@types/jest" : " ^29.5.14 " ,
85+ "@types/jest" : " ^30.0.0 " ,
8686 "@types/leaflet" : " ^1.9.20" ,
8787 "@types/leaflet.markercluster" : " ^1.5.6" ,
8888 "@types/markdown-it" : " ^14.1.2" ,
100100 "eslint-plugin-jsx-a11y" : " ^6.10.2" ,
101101 "eslint-plugin-prettier" : " ^5.5.4" ,
102102 "eslint-plugin-react" : " ^7.37.5" ,
103- "eslint-plugin-react-hooks" : " ^5.2.0 " ,
103+ "eslint-plugin-react-hooks" : " ^6.1.1 " ,
104104 "globals" : " ^16.4.0" ,
105105 "identity-obj-proxy" : " ^3.0.0" ,
106106 "import-in-the-middle" : " ^1.14.4" ,
107- "jest" : " ^29.7 .0" ,
107+ "jest" : " ^30.2 .0" ,
108108 "jest-axe" : " ^10.0.0" ,
109109 "jest-environment-jsdom" : " ^30.2.0" ,
110110 "open" : " ^10.2.0" ,
You can’t perform that action at this time.
0 commit comments