Skip to content

Commit 303a1ae

Browse files
committed
test(scenarios): read the recorder's last line without Array.prototype.at
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwgUKpQgCE3UWsA74d
1 parent 8d75056 commit 303a1ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/qa/scenarios/test/build/built-consumer.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function runNode(code: string, kind: 'module' | 'commonjs'): { out: Record<strin
5757
encoding: 'utf8',
5858
});
5959
const lines = stdout.trim().split('\n');
60-
return { out: JSON.parse(lines[0]!) as Record<string, unknown>, resolved: JSON.parse(lines.at(-1)!) as string[] };
60+
return { out: JSON.parse(lines[0]!) as Record<string, unknown>, resolved: JSON.parse(lines[lines.length - 1]!) as string[] };
6161
}
6262

6363
const probe = (mod: string) => `

0 commit comments

Comments
 (0)