mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-01 13:03:34 +00:00
chore(lint): enable stricter error rules
This commit is contained in:
@@ -41,7 +41,7 @@ describe("buildProgram", () => {
|
||||
}
|
||||
|
||||
async function expectCommanderExit(promise: Promise<unknown>, exitCode: number) {
|
||||
const error = await promise.catch((err) => err);
|
||||
const error = await promise.catch((err: unknown) => err);
|
||||
|
||||
expect(error).toBeInstanceOf(CommanderError);
|
||||
expect((error as CommanderError).exitCode).toBe(exitCode);
|
||||
|
||||
Reference in New Issue
Block a user