Skip to content

The agent that grows with you

test(install-e2e): resolve report module from the test URL

ethernet5f10ff483e40
diff --git a/tests-js/install-known-failures.test.ts b/tests-js/install-known-failures.test.ts
index 4120f332eb9..7799f27d7a5 100644
--- a/tests-js/install-known-failures.test.ts
+++ b/tests-js/install-known-failures.test.ts
@@ -66,8 +66,8 @@ describe('known install failures', () => {
})
it('renders known receipts as footnotes, without suppressing a red job', async () => {
- const modulePath = '../scripts/sandbox/generate-e2e-matrix.mjs'
- const { renderMarkdownResults, legId } = await import(modulePath)
+ const modulePath = new URL('../scripts/sandbox/generate-e2e-matrix.mjs', import.meta.url).href
+ const { renderMarkdownResults, legId } = await import(/* @vite-ignore */ modulePath)
const name = 'windows: installer-script -> hermes-update (v2026.3.12 -> HEAD)'
const artifacts = new Map([[`install-e2e-known-${rules[0].id}--${legId(name)}`, 42]])
const known = renderMarkdownResults([{ name: name + ' / e2e', conclusion: 'success' }], [], artifacts)