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 27e47ae commit 266e721Copy full SHA for 266e721
1 file changed
src/cli/daemon-cli/lifecycle-core.config-guard.test.ts
@@ -21,7 +21,8 @@ const invalidConfigRecoveryHint = [
21
].join("\n");
22
23
function expectLatestRuntimeJson(payload: unknown) {
24
- expect(defaultRuntime.writeJson.mock.calls.at(-1)?.[0]).toEqual(payload);
+ const calls = defaultRuntime.writeJson.mock.calls;
25
+ expect(calls[calls.length - 1]?.[0]).toEqual(payload);
26
}
27
28
vi.mock("../../config/config.js", () => ({
0 commit comments