We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ed2a9a commit da7f9a6Copy full SHA for da7f9a6
1 file changed
src/cli/test-runtime-capture.ts
@@ -91,5 +91,5 @@ export function spyRuntimeJson(runtime: Pick<OutputRuntimeEnv, "writeJson">) {
91
92
// oxlint-disable-next-line typescript/no-unnecessary-type-parameters -- Test helper lets callers ascribe captured JSON shape.
93
export function firstWrittenJsonArg<T>(writeJson: MockCallsWithFirstArg): T | null {
94
- return (writeJson.mock.calls[0]?.[0] ?? null) as T | null;
+ return (writeJson.mock.calls.at(0)?.[0] ?? null) as T | null;
95
}
0 commit comments