From 05ac9e53cf1f57196cf61401bcb2e84fd87c9836 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Thu, 12 Mar 2026 01:26:11 -0400 Subject: [PATCH] Tests: document fresh import helper --- test/helpers/import-fresh.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/helpers/import-fresh.ts b/test/helpers/import-fresh.ts index 32ec49c9695..577e25cd856 100644 --- a/test/helpers/import-fresh.ts +++ b/test/helpers/import-fresh.ts @@ -2,5 +2,7 @@ export async function importFreshModule( from: string, specifier: string, ): Promise { + // Vitest keys module instances by the full URL string, including the query + // suffix. These tests rely on that behavior to emulate code-split chunks. return (await import(/* @vite-ignore */ new URL(specifier, from).href)) as TModule; }