Skip to content

Commit 3b82156

Browse files
committed
test: guard node cli mock calls
1 parent 3d93d12 commit 3b82156

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cli/node-cli/register.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ describe("registerNodeCli", () => {
3838

3939
await program.parseAsync(["node", "start", "--json"], { from: "user" });
4040

41-
expect(daemonMocks.runNodeDaemonStart.mock.calls[0]?.[0]?.json).toBe(true);
41+
expect(daemonMocks.runNodeDaemonStart.mock.calls.at(0)?.[0]?.json).toBe(true);
4242
});
4343
});

0 commit comments

Comments
 (0)