From dd921ab051c685e2de8c3dbcef6c8a95196e88ec Mon Sep 17 00:00:00 2001 From: vinnyhoward Date: Thu, 3 Dec 2026 18:11:10 -0700 Subject: [PATCH] test(client-utils): build the compact reference from NumberFormatPresets.compact The native reference left out the preset's minimumFractionDigits: 0. Node 22 then defaults to the currency's 2 decimals ($1.50M), so the Hermes parity test failed on the Node 22 CI shard. --- packages/client-utils/src/formatters/intl-fallbacks.test.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/client-utils/src/formatters/intl-fallbacks.test.ts b/packages/client-utils/src/formatters/intl-fallbacks.test.ts index 48280e65251..387be9499bd 100644 --- a/packages/client-utils/src/formatters/intl-fallbacks.test.ts +++ b/packages/client-utils/src/formatters/intl-fallbacks.test.ts @@ -538,11 +538,10 @@ describe('formatNumberWithHermesFallbacks', () => { currencyDisplay: 'narrowSymbol', }); const compactCurrency: Intl.NumberFormatOptions = { + ...compact, style: 'currency', currency: 'CAD', currencyDisplay: 'narrowSymbol', - notation: 'compact', - maximumFractionDigits: 2, }; expect(