diff --git a/js/tests/test.mjs b/js/tests/test.mjs index de47a976..eb6a0242 100644 --- a/js/tests/test.mjs +++ b/js/tests/test.mjs @@ -90,7 +90,7 @@ const runTests = async ({ url, path, code }) => { fatal(`Unable to execute ${name} solution, error:\n${stackFmt(err, url)}`), ) - const ctx = (await (setup && setup())) || {} + const ctx = (await (setup && setup({ path }))) || {} const tools = { eq, fail, wait, code, ctx, path } for (const [i, t] of tests.entries()) { try {