diff --git a/packages/@sanity/portable-text-editor/package.json b/packages/@sanity/portable-text-editor/package.json index d923896ad78..661780fd35f 100644 --- a/packages/@sanity/portable-text-editor/package.json +++ b/packages/@sanity/portable-text-editor/package.json @@ -93,7 +93,7 @@ "express": "^4.17.1", "express-ws": "^5.0.2", "jest": "^29.7.0", - "jest-dev-server": "^9.0.0", + "jest-dev-server": "^9.0.1", "node-ipc": "npm:@node-ipc/compat@9.2.5", "jest-environment-node": "^29.7.0", "react": "^18.2.0", diff --git a/packages/@sanity/portable-text-editor/src/editor/components/Synchronizer.tsx b/packages/@sanity/portable-text-editor/src/editor/components/Synchronizer.tsx index a5a84eb08ae..cc9debefa30 100644 --- a/packages/@sanity/portable-text-editor/src/editor/components/Synchronizer.tsx +++ b/packages/@sanity/portable-text-editor/src/editor/components/Synchronizer.tsx @@ -28,7 +28,7 @@ const debugVerbose = debug.enabled && false // The editor will commit changes in a throttled fashion in order // not to overload the network and degrade performance while typing. -const FLUSH_PATCHES_THROTTLED_MS = 500 +const FLUSH_PATCHES_THROTTLED_MS = process.env.NODE_ENV === 'test' ? 50 : 1000 /** * @internal diff --git a/yarn.lock b/yarn.lock index 2ca1b570f8c..c20dc626048 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10041,16 +10041,16 @@ jest-config@^29.7.0: slash "^3.0.0" strip-json-comments "^3.1.1" -jest-dev-server@^9.0.0: - version "9.0.0" - resolved "https://registry.npmjs.org/jest-dev-server/-/jest-dev-server-9.0.0.tgz#91b8d1803b6bcce0903f7fa9bd5ee0002f53a26f" - integrity sha512-N43EDJLy3JBHZwtTxqHy+6lxu7Zw5PLD8Jzq2+ePV3v90hQc4UoUA/fnxoKdTCgZY3P1qPl6Zmj8m/886APxoQ== +jest-dev-server@^9.0.1: + version "9.0.1" + resolved "https://registry.npmjs.org/jest-dev-server/-/jest-dev-server-9.0.1.tgz#75d50b946c94e278401158bcc9a29da23d21204d" + integrity sha512-eqpJKSvVl4M0ojHZUPNbka8yEzLNbIMiINXDsuMF3lYfIdRO2iPqy+ASR4wBQ6nUyR3OT24oKPWhpsfLhgAVyg== dependencies: chalk "^4.1.2" cwd "^0.10.0" find-process "^1.4.7" prompts "^2.4.2" - spawnd "^9.0.0" + spawnd "^9.0.1" tree-kill "^1.2.2" wait-on "^7.0.1" @@ -14102,7 +14102,7 @@ signal-exit@^3.0.0, signal-exit@^3.0.2, signal-exit@^3.0.3, signal-exit@^3.0.7: resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== -signal-exit@^4.0.2: +signal-exit@^4.1.0: version "4.1.0" resolved "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz#952188c1cbd546070e2dd20d0f41c0ae0530cb04" integrity sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw== @@ -14342,12 +14342,12 @@ space-separated-tokens@^1.0.0: resolved "https://registry.yarnpkg.com/space-separated-tokens/-/space-separated-tokens-1.1.5.tgz#85f32c3d10d9682007e917414ddc5c26d1aa6899" integrity sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA== -spawnd@^9.0.0: - version "9.0.0" - resolved "https://registry.npmjs.org/spawnd/-/spawnd-9.0.0.tgz#f41b60cd4618ad43d237a110ce391a2b3f93dd2b" - integrity sha512-YJRGf0loiLsHTQZztPSI5pb9RmlKE5y6Nvxko6dNtGrkra+1BaJ7PN86GQ1/2ldLZgMhMG9ITopkDJ+7lHkBYw== +spawnd@^9.0.1: + version "9.0.1" + resolved "https://registry.npmjs.org/spawnd/-/spawnd-9.0.1.tgz#43b39b4bf5bdf6b5e38fbb7fabb2fbd0385b23b9" + integrity sha512-vaMk8E9CpbjTYToBxLXowDeArGf1+yI7A6PU6Nr57b2g8BVY8nRi5vTBj3bMF8UkCrMdTMyf/Lh+lrcrW2z7pw== dependencies: - signal-exit "^4.0.2" + signal-exit "^4.1.0" tree-kill "^1.2.2" spdx-correct@^3.0.0: