From 75e0d620bfbb0f50aab897538a99964e85d5f713 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Sun, 25 Oct 2026 10:30:08 +0800 Subject: [PATCH] fix(tests): accept retained module aliases in node views Content-identical assets share a node whose observations are ordered by identity. Accept either retained display path when selecting that node, while retaining exact per-path reference and observation assertions. --- .../javascriptContentDeduplicatedModulePaths.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/acceptance/applications/javascriptContentDeduplicatedModulePaths.test.ts b/tests/acceptance/applications/javascriptContentDeduplicatedModulePaths.test.ts index 0dff2285d5..ae95a675b2 100644 --- a/tests/acceptance/applications/javascriptContentDeduplicatedModulePaths.test.ts +++ b/tests/acceptance/applications/javascriptContentDeduplicatedModulePaths.test.ts @@ -70,7 +70,8 @@ cliTest( kind: "item", item: { node_id: sharedNodeId, - path: "a.js", + // Observations are ordered by identity, not by their path spelling. + path: expect.stringMatching(/^[ab]\.js$/u), observations: expect.arrayContaining([ expect.objectContaining({ properties: expect.objectContaining({ path: "a.js" }),