import test from "node:test"; import assert from "node:assert/strict"; // UUID v4 format: xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx // where x is a hex digit and y is one of 8, 9, a, or b const UUID_V4_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i; /** * Extract the polyfill function from layout.tsx's dangerouslySetInnerHTML. * We replicate the logic here to test it in isolation since it runs in * a