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" }),