chore: enable await-thenable

This commit is contained in:
Peter Steinberger
2026-04-10 19:59:58 +01:00
parent cdb944ef0a
commit 01113566fd
4 changed files with 5 additions and 6 deletions

View File

@@ -59,7 +59,6 @@
"**/*test-support.ts"
],
"rules": {
"typescript/await-thenable": "off",
"typescript/no-base-to-string": "off",
"typescript/no-explicit-any": "off",
"typescript/no-floating-promises": "off",

View File

@@ -65,7 +65,7 @@ describe("browser plugin", () => {
it("forwards per-session browser options into the tool factory", async () => {
const { api, registerTool } = createApi();
await registerBrowserPlugin(api);
registerBrowserPlugin(api);
const tool = registerTool.mock.calls[0]?.[0];
if (typeof tool !== "function") {

View File

@@ -450,7 +450,7 @@ describe("MatrixCryptoBootstrapper", () => {
initiatedByMe: false,
accept: vi.fn(async () => {}),
};
await listener?.(verificationRequest);
listener?.(verificationRequest);
expect(deps.verificationManager.trackVerificationRequest).toHaveBeenCalledWith(
verificationRequest,
@@ -480,7 +480,7 @@ describe("MatrixCryptoBootstrapper", () => {
initiatedByMe: false,
accept: vi.fn(async () => {}),
};
await listener?.(verificationRequest);
listener?.(verificationRequest);
expect(verificationRequest.accept).not.toHaveBeenCalled();
});

View File

@@ -342,7 +342,7 @@ describe("Engine contract tests", () => {
});
it("legacy compact preserves runtimeContext currentTokenCount when top-level value is absent", async () => {
const compactRuntimeSpy = await installCompactRuntimeSpy();
const compactRuntimeSpy = installCompactRuntimeSpy();
const engine = new LegacyContextEngine();
await engine.compact({
@@ -362,7 +362,7 @@ describe("Engine contract tests", () => {
});
it("delegateCompactionToRuntime reuses the legacy runtime bridge", async () => {
const compactRuntimeSpy = await installCompactRuntimeSpy();
const compactRuntimeSpy = installCompactRuntimeSpy();
const result = await delegateCompactionToRuntime({
sessionId: "s2",
sessionFile: "/tmp/session.json",