test: enable noUncheckedIndexedAccess for extension tests (#105343)

This commit is contained in:
Peter Steinberger
2026-07-12 12:48:22 +01:00
committed by GitHub
parent 5819f837a9
commit 81941f2d68
158 changed files with 2110 additions and 1074 deletions
@@ -1,6 +1,7 @@
// Feishu tests cover monitor.webhook e2e plugin behavior.
import crypto from "node:crypto";
import type { Server } from "node:http";
import { expectDefined } from "@openclaw/normalization-core";
import { afterAll, afterEach, beforeAll, describe, expect, it, vi } from "vitest";
import { createFeishuRuntimeMockModule } from "./monitor.test-mocks.js";
import {
@@ -254,7 +255,10 @@ describe("Feishu webhook signed-request e2e", () => {
encryptKey: "encrypt_key",
rawBody: JSON.stringify(payload),
});
headers["x-lark-signature"] = headers["x-lark-signature"].slice(0, 12);
headers["x-lark-signature"] = expectDefined(
headers["x-lark-signature"],
"Feishu webhook signature",
).slice(0, 12);
const response = await fetch(url, {
method: "POST",