mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-24 14:45:36 +00:00
## Summary - run every `parseIsoDateSafe` case with more than 3 fractional-second digits through `withStrictMillisecondParser` - assert the normalized 3-digit timestamp string passed into `Date` for each long-fraction variant - keep the follow-up scoped to test coverage only ## Root cause V8 already accepts and truncates ISO timestamps with more than 3 fractional-second digits, so the existing tests could stay green even if `parseIsoDateSafe` failed to normalize those values before constructing `Date`. Wrapping the long-fraction cases in the strict parser shim makes CI exercise the Safari/WebView-sensitive path the feature is meant to protect. ## Testing - `pnpm exec vitest run src/utils/dateTimeUtil.test.ts` - `pnpm exec eslint src/utils/dateTimeUtil.test.ts` Fixes #11528 ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-11529-codex-test-harden-strict-parser-coverage-for-long-ISO-fractions-34a6d73d365081119577eb5fb6d4992c) by [Unito](https://www.unito.io)