diff --git a/.oxlintrc.json b/.oxlintrc.json index 31e9a8c2e5c..c1eecf3d1bc 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -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", diff --git a/extensions/browser/index.test.ts b/extensions/browser/index.test.ts index 4e6fcbd74a8..5d679e11cc7 100644 --- a/extensions/browser/index.test.ts +++ b/extensions/browser/index.test.ts @@ -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") { diff --git a/extensions/matrix/src/matrix/sdk/crypto-bootstrap.test.ts b/extensions/matrix/src/matrix/sdk/crypto-bootstrap.test.ts index 37678d9e343..07ee889f6fd 100644 --- a/extensions/matrix/src/matrix/sdk/crypto-bootstrap.test.ts +++ b/extensions/matrix/src/matrix/sdk/crypto-bootstrap.test.ts @@ -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(); }); diff --git a/src/context-engine/context-engine.test.ts b/src/context-engine/context-engine.test.ts index 01071593856..2cc7c81a603 100644 --- a/src/context-engine/context-engine.test.ts +++ b/src/context-engine/context-engine.test.ts @@ -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",