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.
This commit is contained in:
morluto committed 2026-10-25 10:30:08 +08:00
1 parent 4c680d099c
commit 75e0d620bf
1 file changed
+2 -1
@@ -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" }),