diff --git a/jest.config.js b/jest.config.js index 50bdfe93fd642b..6657a238a4b073 100644 --- a/jest.config.js +++ b/jest.config.js @@ -21,8 +21,6 @@ const customJestConfig = { moduleNameMapper: { '@next/font/(.*)': '@next/font/$1', }, - // Re-add support for inline snapshots using prettier v2: - prettierPath: require.resolve('prettier-2'), } // Check if the environment variable is set to enable test report, diff --git a/package.json b/package.json index 0cd6a18d77f214..472598b73e998c 100644 --- a/package.json +++ b/package.json @@ -203,7 +203,6 @@ "postcss-short-size": "4.0.0", "postcss-trolling": "0.1.7", "prettier": "3.2.5", - "prettier-2": "npm:prettier@^2", "pretty-bytes": "5.3.0", "pretty-ms": "7.0.0", "random-seed": "0.3.0", @@ -268,6 +267,7 @@ "@babel/traverse": "7.22.5", "@types/react": "19.0.0", "@types/react-dom": "19.0.0", + "jest-snapshot": "30.0.0-alpha.6", "react": "19.0.0-rc-7283a213-20241206", "react-dom": "19.0.0-rc-7283a213-20241206", "react-is": "19.0.0-rc-7283a213-20241206", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1587a5f5fca642..78e717cdb4b561 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,6 +15,7 @@ overrides: '@babel/traverse': 7.22.5 '@types/react': 19.0.0 '@types/react-dom': 19.0.0 + jest-snapshot: 30.0.0-alpha.6 react: 19.0.0-rc-7283a213-20241206 react-dom: 19.0.0-rc-7283a213-20241206 react-is: 19.0.0-rc-7283a213-20241206 @@ -437,9 +438,6 @@ importers: prettier: specifier: 3.2.5 version: 3.2.5 - prettier-2: - specifier: npm:prettier@^2 - version: prettier@2.5.1 pretty-bytes: specifier: 5.3.0 version: 5.3.0 @@ -4005,6 +4003,10 @@ packages: resolution: {integrity: sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw==} engines: {node: '>=8'} + '@istanbuljs/schema@0.1.3': + resolution: {integrity: sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==} + engines: {node: '>=8'} + '@jest/console@29.7.0': resolution: {integrity: sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -4030,6 +4032,10 @@ packages: resolution: {integrity: sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + '@jest/expect-utils@30.0.0-alpha.6': + resolution: {integrity: sha512-QMySMhaCUl0ZQd7Tx5X3fVWY5jtQxZNrTll0OyavdQ70ZTLgk0kU9K+XovcMWO26MK9R5EX7bBgD/j7w9hUM4w==} + engines: {node: ^16.10.0 || ^18.12.0 || >=20.0.0} + '@jest/expect@29.7.0': resolution: {integrity: sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -4046,6 +4052,10 @@ packages: resolution: {integrity: sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + '@jest/pattern@30.0.0-alpha.6': + resolution: {integrity: sha512-eoV3sjS1M5k3YdrFWezqdndfgepwB86gwyXC0BzV2saZdJ42ySUoEDBGKuwta8A6Zh3w8tVHNFxz1BqiFraHCQ==} + engines: {node: ^16.10.0 || ^18.12.0 || >=20.0.0} + '@jest/reporters@29.7.0': resolution: {integrity: sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -4063,6 +4073,14 @@ packages: resolution: {integrity: sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + '@jest/schemas@30.0.0-alpha.6': + resolution: {integrity: sha512-Ukr3kR/VsBq8+JHU92xArhSJeFQHVHs5T1laPO00GrrNzv3DvoHn3/EVVagGn9CHbLeAyJHXFRHYxq3+520kiA==} + engines: {node: ^16.10.0 || ^18.12.0 || >=20.0.0} + + '@jest/snapshot-utils@30.0.0-alpha.6': + resolution: {integrity: sha512-iDtIFCyRT8ZyLmz6kYbS8GR/MBXKA6uZPBfdTcnd2y0T987DV3GVlvwkAC+iFTc1w3HgwQe8LTf+y3i+O2ISCw==} + engines: {node: ^16.10.0 || ^18.12.0 || >=20.0.0} + '@jest/source-map@29.6.3': resolution: {integrity: sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -4083,6 +4101,10 @@ packages: resolution: {integrity: sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + '@jest/transform@30.0.0-alpha.6': + resolution: {integrity: sha512-4L8BZm38BJASswsqruc4c3F0AExYLvp0xq8067e7fIyg4hfwa4zUA+N2idf+eTTjDWevVVdIBfELzJ8b7nvO4Q==} + engines: {node: ^16.10.0 || ^18.12.0 || >=20.0.0} + '@jest/types@24.9.0': resolution: {integrity: sha512-XKK7ze1apu5JWQ5eZjHITP66AX+QsLlbaJRBGYr8pNzwcAE2JVkwnf0yqjHTsDRcjR0mujy/NmZMXw5kl+kGBw==} engines: {node: '>= 6'} @@ -4095,6 +4117,10 @@ packages: resolution: {integrity: sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + '@jest/types@30.0.0-alpha.6': + resolution: {integrity: sha512-qUjAm8uvIR7oExn/Fp7/bvn58HSZng5itQDM9x0vaxXWxxGH/8MDmqX/h7OUBz9ka+KfYRaTxe4Y6wiM8+nphw==} + engines: {node: ^16.10.0 || ^18.12.0 || >=20.0.0} + '@jridgewell/gen-mapping@0.3.1': resolution: {integrity: sha512-GcHwniMlA2z+WFPWuY8lp3fsza0I8xPFMWL5+n8LYyP6PSvPrXf4+n8stDHZY2DM0zy9sVkRDy1jDI4XGzYVqg==} engines: {node: '>=6.0.0'} @@ -4713,6 +4739,10 @@ packages: resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} engines: {node: '>=14'} + '@pkgr/core@0.1.1': + resolution: {integrity: sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==} + engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} + '@playwright/test@1.41.2': resolution: {integrity: sha512-qQB9h7KbibJzrDpkXkYvsmiDJK14FULCCZgEcoe2AvFAS64oCirWTwzTlAYEbKaRxWs5TFesE1Na6izMv3HfGg==} engines: {node: '>=16'} @@ -4825,6 +4855,9 @@ packages: '@sinclair/typebox@0.27.8': resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} + '@sinclair/typebox@0.33.22': + resolution: {integrity: sha512-auUj4k+f4pyrIVf4GW5UKquSZFHJWri06QgARy9C0t9ZTjJLIuNIrr1yl9bWcJWJ1Gz1vOvYN1D+QPaIlNMVkQ==} + '@sindresorhus/is@0.14.0': resolution: {integrity: sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==} engines: {node: '>=6'} @@ -6114,6 +6147,10 @@ packages: resolution: {integrity: sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==} engines: {node: '>=8'} + babel-plugin-istanbul@7.0.0: + resolution: {integrity: sha512-C5OzENSx/A+gt7t4VH1I2XsflxyPUmXRFPKBxt33xncdOmq7oROVM3bZv9Ysjjkv8OJYDMa+tKuKMvqU/H3xdw==} + engines: {node: '>=12'} + babel-plugin-jest-hoist@29.6.3: resolution: {integrity: sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -7647,6 +7684,10 @@ packages: resolution: {integrity: sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + diff-sequences@30.0.0-alpha.6: + resolution: {integrity: sha512-DVGt3/yzbneMUTuupsMqyfSXMnU2fE0lVsC9uFsJmRpluvSi7ZhrS0GX5tnMna6Ta788FGfOUx+irI/+cAZ4EA==} + engines: {node: ^16.10.0 || ^18.12.0 || >=20.0.0} + diff@5.1.0: resolution: {integrity: sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==} engines: {node: '>=0.3.1'} @@ -8321,6 +8362,10 @@ packages: resolution: {integrity: sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + expect@30.0.0-alpha.6: + resolution: {integrity: sha512-WVi2V4iHKw/vHEyye00Q9CSZz7KHDbJkJyteUI8kTih9jiyMl3bIk7wLYFcY9D1Blnadlyb5w5NBuNjQBow99g==} + engines: {node: ^16.10.0 || ^18.12.0 || >=20.0.0} + express@4.17.0: resolution: {integrity: sha512-1Z7/t3Z5ZnBG252gKUPyItc4xdeaA0X934ca2ewckAsVsw9EG71i++ZHZPYnus8g/s5Bty8IMpSVEuRkmwwPRQ==} engines: {node: '>= 0.10.0'} @@ -9758,6 +9803,10 @@ packages: resolution: {integrity: sha512-EAMEJBsYuyyztxMxW3g7ugGPkrZsV57v0Hmv3mm1uQsmB+QnZuepg731CRaIgeUVSdmsTngOkSnauNF8p7FIhA==} engines: {node: '>=10'} + istanbul-lib-instrument@6.0.3: + resolution: {integrity: sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==} + engines: {node: '>=10'} + istanbul-lib-report@3.0.0: resolution: {integrity: sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==} engines: {node: '>=8'} @@ -9824,6 +9873,10 @@ packages: resolution: {integrity: sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + jest-diff@30.0.0-alpha.6: + resolution: {integrity: sha512-43j1DoYwVKrkbB67a2gC0ijjIY9biF0JSPXv7H6zlOkzNlqYg8hSDzrurLNo6zGKatW4JSBLE79LmXPJPj1m6A==} + engines: {node: ^16.10.0 || ^18.12.0 || >=20.0.0} + jest-docblock@29.7.0: resolution: {integrity: sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -9858,6 +9911,10 @@ packages: resolution: {integrity: sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + jest-get-type@30.0.0-alpha.6: + resolution: {integrity: sha512-lJEoQdCY4ICN6+T0lJ9BODKuqPOEpCv2NnJsEO1nmsK0fbWZmN/pgOPHVqLfK8i3jZpUmgupJ1w8r36mc8iiBQ==} + engines: {node: ^16.10.0 || ^18.12.0 || >=20.0.0} + jest-haste-map@29.5.0: resolution: {integrity: sha512-IspOPnnBro8YfVYSw6yDRKh/TiCdRngjxeacCps1cQ9cgVN6+10JUcuJ1EabrgYLOATsIAigxA0rLR9x/YlrSA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -9866,6 +9923,10 @@ packages: resolution: {integrity: sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + jest-haste-map@30.0.0-alpha.6: + resolution: {integrity: sha512-NR/Kw8HyOkuWIdT8ynsp9KnsTDvWnlz8WSOmtQxySTIzOWbZaeJ2FJi9LoDL6+vhKpdlLfUvhgZVtnFJSLCzew==} + engines: {node: ^16.10.0 || ^18.12.0 || >=20.0.0} + jest-junit@16.0.0: resolution: {integrity: sha512-A94mmw6NfJab4Fg/BlvVOUXzXgF0XIH6EmTgJ5NDPp4xoKq0Kr7sErb+4Xs9nZvu58pJojz5RFGpqnZYJTrRfQ==} engines: {node: '>=10.12.0'} @@ -9878,10 +9939,18 @@ packages: resolution: {integrity: sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + jest-matcher-utils@30.0.0-alpha.6: + resolution: {integrity: sha512-jaq7+HznsK54G0qzu96ZwfMEKHmlPiDqg6qG2p/hVQzr6Y/qVMRh8abI9Y1lX6SSXkr+S9mPAkmOsuJNLTLYmQ==} + engines: {node: ^16.10.0 || ^18.12.0 || >=20.0.0} + jest-message-util@29.7.0: resolution: {integrity: sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + jest-message-util@30.0.0-alpha.6: + resolution: {integrity: sha512-XAGJqkrBo7m3bFxWqiNqL0PyAWGf1XHR6bTve90MjBKJuIzhJsounGTzBNUw8JoU7Uzcj5Z6ZmEhaE3CDnwjfw==} + engines: {node: ^16.10.0 || ^18.12.0 || >=20.0.0} + jest-mock@29.5.0: resolution: {integrity: sha512-GqOzvdWDE4fAV2bWQLQCkujxYWL7RxjCnj71b5VhDAGOevB3qj3Ovg26A5NI84ZpODxyzaozXLOh2NCgkbvyaw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -9890,6 +9959,10 @@ packages: resolution: {integrity: sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + jest-mock@30.0.0-alpha.6: + resolution: {integrity: sha512-ezW02IXiKyFYAgDuxfAlONWULitSaB66t411fq2BJxQtgyMGtv59CsnhgbKb0gQp+9vig5MO5ytDCUPalTbarg==} + engines: {node: ^16.10.0 || ^18.12.0 || >=20.0.0} + jest-pnp-resolver@1.2.2: resolution: {integrity: sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w==} engines: {node: '>=6'} @@ -9907,6 +9980,10 @@ packages: resolution: {integrity: sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + jest-regex-util@30.0.0-alpha.6: + resolution: {integrity: sha512-XcsAVaqc69QyMz1/FChyhWSoAMaKcDPhFOuWJz/H51LppsyZRAJPXkPnMopsS+qfut8cggExr9QLcsYaX6hqqA==} + engines: {node: ^16.10.0 || ^18.12.0 || >=20.0.0} + jest-resolve-dependencies@29.7.0: resolution: {integrity: sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -9923,9 +10000,9 @@ packages: resolution: {integrity: sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - jest-snapshot@29.7.0: - resolution: {integrity: sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + jest-snapshot@30.0.0-alpha.6: + resolution: {integrity: sha512-YCBUxSNJ9YGch3tyQdxQkOUitbmXahHL6UhSQeSMERFfX1UMrHyEDHggglocCUg4G3jdU8YzshxOJ/oaR6Ph8w==} + engines: {node: ^16.10.0 || ^18.12.0 || >=20.0.0} jest-util@29.5.0: resolution: {integrity: sha512-RYMgG/MTadOr5t8KdhejfvUU82MxsCu5MF6KuDUHl+NuwzUt+Sm6jJWxTJVrDR1j5M/gJVCPKQEpWXY+yIQ6lQ==} @@ -9935,6 +10012,10 @@ packages: resolution: {integrity: sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + jest-util@30.0.0-alpha.6: + resolution: {integrity: sha512-JlimakOVDyoMC8TEG+knoufxUqLG+Btihf1G8o5sHxz54C6oL54Wetfepp+Nhuj/1hSL0sQtkovvjlEycf9i0w==} + engines: {node: ^16.10.0 || ^18.12.0 || >=20.0.0} + jest-validate@29.7.0: resolution: {integrity: sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -9955,6 +10036,10 @@ packages: resolution: {integrity: sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + jest-worker@30.0.0-alpha.6: + resolution: {integrity: sha512-qlzX7zFT/QdUV/LWsJwZBlaIBaJ+E2VH3d1gArGVP+9hUHGpJkEzCSBK7yuZrkt+M/U0Jre5+maPRmkinEF4DA==} + engines: {node: ^16.10.0 || ^18.12.0 || >=20.0.0} + jest@29.7.0: resolution: {integrity: sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -12448,6 +12533,10 @@ packages: resolution: {integrity: sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} + pretty-format@30.0.0-alpha.6: + resolution: {integrity: sha512-xkeffkZoqQmRrcNewpOsUCKNOl+CkPqjt3Ld749uz1S7/O7GuPNPv2fZk3v/1U/FE8/B4Zz0llVL80MKON1tOQ==} + engines: {node: ^16.10.0 || ^18.12.0 || >=20.0.0} + pretty-ms@7.0.0: resolution: {integrity: sha512-J3aPWiC5e9ZeZFuSeBraGxSkGMOvulSWsxDByOcbD1Pr75YL3LSNIKIb52WXbCLE1sS5s4inBBbryjF4Y05Ceg==} engines: {node: '>=10'} @@ -13954,6 +14043,10 @@ packages: symbol-tree@3.2.4: resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==} + synckit@0.9.2: + resolution: {integrity: sha512-vrozgXDQwYO72vHjUb/HnFbQx1exDjoKzqx23aXEg2a9VIg2TSFZ8FmeZpTjUCFMYw7mpX4BE2SFu8wI7asYsw==} + engines: {node: ^14.18.0 || >=16.0.0} + tabbable@6.2.0: resolution: {integrity: sha512-Cat63mxsVJlzYvN51JmVXIgNoUokrIaT2zLclCXjRd8boZ0004U4KCs/sToJ75C6sdlByWxpYnb5Boif1VSFew==} @@ -17928,6 +18021,8 @@ snapshots: '@istanbuljs/schema@0.1.2': {} + '@istanbuljs/schema@0.1.3': {} + '@jest/console@29.7.0': dependencies: '@jest/types': 29.6.3 @@ -17959,7 +18054,7 @@ snapshots: jest-resolve-dependencies: 29.7.0 jest-runner: 29.7.0 jest-runtime: 29.7.0 - jest-snapshot: 29.7.0 + jest-snapshot: 30.0.0-alpha.6 jest-util: 29.7.0 jest-validate: 29.7.0 jest-watcher: 29.7.0 @@ -17990,10 +18085,14 @@ snapshots: dependencies: jest-get-type: 29.6.3 + '@jest/expect-utils@30.0.0-alpha.6': + dependencies: + jest-get-type: 30.0.0-alpha.6 + '@jest/expect@29.7.0': dependencies: expect: 29.7.0 - jest-snapshot: 29.7.0 + jest-snapshot: 30.0.0-alpha.6 transitivePeerDependencies: - supports-color @@ -18024,6 +18123,11 @@ snapshots: transitivePeerDependencies: - supports-color + '@jest/pattern@30.0.0-alpha.6': + dependencies: + '@types/node': 20.17.6 + jest-regex-util: 30.0.0-alpha.6 + '@jest/reporters@29.7.0': dependencies: '@bcoe/v8-coverage': 0.2.3 @@ -18061,6 +18165,17 @@ snapshots: dependencies: '@sinclair/typebox': 0.27.8 + '@jest/schemas@30.0.0-alpha.6': + dependencies: + '@sinclair/typebox': 0.33.22 + + '@jest/snapshot-utils@30.0.0-alpha.6': + dependencies: + '@jest/types': 30.0.0-alpha.6 + chalk: 4.1.2 + graceful-fs: 4.2.11 + natural-compare: 1.4.0 + '@jest/source-map@29.6.3': dependencies: '@jridgewell/trace-mapping': 0.3.22 @@ -18121,6 +18236,26 @@ snapshots: transitivePeerDependencies: - supports-color + '@jest/transform@30.0.0-alpha.6': + dependencies: + '@babel/core': 7.22.5 + '@jest/types': 30.0.0-alpha.6 + '@jridgewell/trace-mapping': 0.3.22 + babel-plugin-istanbul: 7.0.0 + chalk: 4.1.2 + convert-source-map: 2.0.0 + fast-json-stable-stringify: 2.1.0 + graceful-fs: 4.2.11 + jest-haste-map: 30.0.0-alpha.6 + jest-regex-util: 30.0.0-alpha.6 + jest-util: 30.0.0-alpha.6 + micromatch: 4.0.8 + pirates: 4.0.6 + slash: 3.0.0 + write-file-atomic: 5.0.1 + transitivePeerDependencies: + - supports-color + '@jest/types@24.9.0': dependencies: '@types/istanbul-lib-coverage': 2.0.4 @@ -18145,6 +18280,16 @@ snapshots: '@types/yargs': 17.0.10 chalk: 4.1.2 + '@jest/types@30.0.0-alpha.6': + dependencies: + '@jest/pattern': 30.0.0-alpha.6 + '@jest/schemas': 30.0.0-alpha.6 + '@types/istanbul-lib-coverage': 2.0.4 + '@types/istanbul-reports': 3.0.1 + '@types/node': 20.17.6 + '@types/yargs': 17.0.10 + chalk: 4.1.2 + '@jridgewell/gen-mapping@0.3.1': dependencies: '@jridgewell/set-array': 1.1.1 @@ -19141,6 +19286,8 @@ snapshots: '@pkgjs/parseargs@0.11.0': optional: true + '@pkgr/core@0.1.1': {} + '@playwright/test@1.41.2': dependencies: playwright: 1.41.2 @@ -19250,6 +19397,8 @@ snapshots: '@sinclair/typebox@0.27.8': {} + '@sinclair/typebox@0.33.22': {} + '@sindresorhus/is@0.14.0': {} '@sinonjs/commons@3.0.0': @@ -20727,6 +20876,16 @@ snapshots: transitivePeerDependencies: - supports-color + babel-plugin-istanbul@7.0.0: + dependencies: + '@babel/helper-plugin-utils': 7.25.7 + '@istanbuljs/load-nyc-config': 1.0.0 + '@istanbuljs/schema': 0.1.3 + istanbul-lib-instrument: 6.0.3 + test-exclude: 6.0.0 + transitivePeerDependencies: + - supports-color + babel-plugin-jest-hoist@29.6.3: dependencies: '@babel/template': 7.25.7 @@ -22539,6 +22698,8 @@ snapshots: diff-sequences@29.6.3: {} + diff-sequences@30.0.0-alpha.6: {} + diff@5.1.0: {} diffie-hellman@5.0.3: @@ -23642,6 +23803,15 @@ snapshots: jest-message-util: 29.7.0 jest-util: 29.7.0 + expect@30.0.0-alpha.6: + dependencies: + '@jest/expect-utils': 30.0.0-alpha.6 + jest-get-type: 30.0.0-alpha.6 + jest-matcher-utils: 30.0.0-alpha.6 + jest-message-util: 30.0.0-alpha.6 + jest-mock: 30.0.0-alpha.6 + jest-util: 30.0.0-alpha.6 + express@4.17.0: dependencies: accepts: 1.3.7 @@ -25294,6 +25464,16 @@ snapshots: transitivePeerDependencies: - supports-color + istanbul-lib-instrument@6.0.3: + dependencies: + '@babel/core': 7.22.5 + '@babel/parser': 7.22.5 + '@istanbuljs/schema': 0.1.3 + istanbul-lib-coverage: 3.2.0 + semver: 7.6.3 + transitivePeerDependencies: + - supports-color + istanbul-lib-report@3.0.0: dependencies: istanbul-lib-coverage: 3.2.0 @@ -25360,7 +25540,7 @@ snapshots: jest-matcher-utils: 29.7.0 jest-message-util: 29.7.0 jest-runtime: 29.7.0 - jest-snapshot: 29.7.0 + jest-snapshot: 30.0.0-alpha.6 jest-util: 29.7.0 p-limit: 3.1.0 pretty-format: 29.7.0 @@ -25385,7 +25565,7 @@ snapshots: jest-matcher-utils: 29.7.0 jest-message-util: 29.7.0 jest-runtime: 29.7.0 - jest-snapshot: 29.7.0 + jest-snapshot: 30.0.0-alpha.6 jest-util: 29.7.0 p-limit: 3.1.0 pretty-format: 29.7.0 @@ -25452,6 +25632,13 @@ snapshots: jest-get-type: 29.6.3 pretty-format: 29.7.0 + jest-diff@30.0.0-alpha.6: + dependencies: + chalk: 4.1.2 + diff-sequences: 30.0.0-alpha.6 + jest-get-type: 30.0.0-alpha.6 + pretty-format: 30.0.0-alpha.6 + jest-docblock@29.7.0: dependencies: detect-newline: 3.1.0 @@ -25497,6 +25684,8 @@ snapshots: jest-get-type@29.6.3: {} + jest-get-type@30.0.0-alpha.6: {} + jest-haste-map@29.5.0: dependencies: '@jest/types': 29.5.0 @@ -25529,6 +25718,21 @@ snapshots: optionalDependencies: fsevents: 2.3.3 + jest-haste-map@30.0.0-alpha.6: + dependencies: + '@jest/types': 30.0.0-alpha.6 + '@types/node': 20.17.6 + anymatch: 3.1.3 + fb-watchman: 2.0.1 + graceful-fs: 4.2.11 + jest-regex-util: 30.0.0-alpha.6 + jest-util: 30.0.0-alpha.6 + jest-worker: 30.0.0-alpha.6 + micromatch: 4.0.8 + walker: 1.0.8 + optionalDependencies: + fsevents: 2.3.3 + jest-junit@16.0.0: dependencies: mkdirp: 1.0.4 @@ -25548,6 +25752,13 @@ snapshots: jest-get-type: 29.6.3 pretty-format: 29.7.0 + jest-matcher-utils@30.0.0-alpha.6: + dependencies: + chalk: 4.1.2 + jest-diff: 30.0.0-alpha.6 + jest-get-type: 30.0.0-alpha.6 + pretty-format: 30.0.0-alpha.6 + jest-message-util@29.7.0: dependencies: '@babel/code-frame': 7.22.5 @@ -25560,6 +25771,18 @@ snapshots: slash: 3.0.0 stack-utils: 2.0.6 + jest-message-util@30.0.0-alpha.6: + dependencies: + '@babel/code-frame': 7.22.5 + '@jest/types': 30.0.0-alpha.6 + '@types/stack-utils': 2.0.1 + chalk: 4.1.2 + graceful-fs: 4.2.11 + micromatch: 4.0.8 + pretty-format: 30.0.0-alpha.6 + slash: 3.0.0 + stack-utils: 2.0.6 + jest-mock@29.5.0: dependencies: '@jest/types': 29.5.0 @@ -25572,6 +25795,12 @@ snapshots: '@types/node': 20.17.6 jest-util: 29.7.0 + jest-mock@30.0.0-alpha.6: + dependencies: + '@jest/types': 30.0.0-alpha.6 + '@types/node': 20.17.6 + jest-util: 30.0.0-alpha.6 + jest-pnp-resolver@1.2.2(jest-resolve@29.7.0): optionalDependencies: jest-resolve: 29.7.0 @@ -25580,10 +25809,12 @@ snapshots: jest-regex-util@29.6.3: {} + jest-regex-util@30.0.0-alpha.6: {} + jest-resolve-dependencies@29.7.0: dependencies: jest-regex-util: 29.6.3 - jest-snapshot: 29.7.0 + jest-snapshot: 30.0.0-alpha.6 transitivePeerDependencies: - supports-color @@ -25645,35 +25876,36 @@ snapshots: jest-mock: 29.7.0 jest-regex-util: 29.6.3 jest-resolve: 29.7.0 - jest-snapshot: 29.7.0 + jest-snapshot: 30.0.0-alpha.6 jest-util: 29.7.0 slash: 3.0.0 strip-bom: 4.0.0 transitivePeerDependencies: - supports-color - jest-snapshot@29.7.0: + jest-snapshot@30.0.0-alpha.6: dependencies: '@babel/core': 7.22.5 '@babel/generator': 7.22.5 '@babel/plugin-syntax-jsx': 7.22.5(@babel/core@7.22.5) '@babel/plugin-syntax-typescript': 7.25.4(@babel/core@7.22.5) '@babel/types': 7.22.5 - '@jest/expect-utils': 29.7.0 - '@jest/transform': 29.7.0 - '@jest/types': 29.6.3 + '@jest/expect-utils': 30.0.0-alpha.6 + '@jest/snapshot-utils': 30.0.0-alpha.6 + '@jest/transform': 30.0.0-alpha.6 + '@jest/types': 30.0.0-alpha.6 babel-preset-current-node-syntax: 1.0.1(@babel/core@7.22.5) chalk: 4.1.2 - expect: 29.7.0 + expect: 30.0.0-alpha.6 graceful-fs: 4.2.11 - jest-diff: 29.7.0 - jest-get-type: 29.6.3 - jest-matcher-utils: 29.7.0 - jest-message-util: 29.7.0 - jest-util: 29.7.0 - natural-compare: 1.4.0 - pretty-format: 29.7.0 + jest-diff: 30.0.0-alpha.6 + jest-get-type: 30.0.0-alpha.6 + jest-matcher-utils: 30.0.0-alpha.6 + jest-message-util: 30.0.0-alpha.6 + jest-util: 30.0.0-alpha.6 + pretty-format: 30.0.0-alpha.6 semver: 7.6.3 + synckit: 0.9.2 transitivePeerDependencies: - supports-color @@ -25695,6 +25927,15 @@ snapshots: graceful-fs: 4.2.11 picomatch: 2.3.1 + jest-util@30.0.0-alpha.6: + dependencies: + '@jest/types': 30.0.0-alpha.6 + '@types/node': 20.17.6 + chalk: 4.1.2 + ci-info: 4.0.0 + graceful-fs: 4.2.11 + picomatch: 4.0.1 + jest-validate@29.7.0: dependencies: '@jest/types': 29.6.3 @@ -25734,6 +25975,14 @@ snapshots: merge-stream: 2.0.0 supports-color: 8.1.1 + jest-worker@30.0.0-alpha.6: + dependencies: + '@types/node': 20.17.6 + '@ungap/structured-clone': 1.2.0 + jest-util: 30.0.0-alpha.6 + merge-stream: 2.0.0 + supports-color: 8.1.1 + jest@29.7.0(@types/node@20.17.6)(babel-plugin-macros@3.1.0): dependencies: '@jest/core': 29.7.0(babel-plugin-macros@3.1.0) @@ -28678,6 +28927,12 @@ snapshots: ansi-styles: 5.2.0 react-is: 19.0.0-rc-7283a213-20241206 + pretty-format@30.0.0-alpha.6: + dependencies: + '@jest/schemas': 30.0.0-alpha.6 + ansi-styles: 5.2.0 + react-is: 19.0.0-rc-7283a213-20241206 + pretty-ms@7.0.0: dependencies: parse-ms: 2.1.0 @@ -30468,6 +30723,11 @@ snapshots: symbol-tree@3.2.4: {} + synckit@0.9.2: + dependencies: + '@pkgr/core': 0.1.1 + tslib: 2.8.1 + tabbable@6.2.0: {} table@6.8.0: diff --git a/test/babel.config.js b/test/babel.config.js new file mode 100644 index 00000000000000..c9868b4dfcb90d --- /dev/null +++ b/test/babel.config.js @@ -0,0 +1,4 @@ +// This config is only used for Jests's inline snapshot matcher. +module.exports = { + plugins: ['@babel/plugin-syntax-explicit-resource-management'], +}