From 8eb25cfcb72df4430e5e0c9e723893c696ef99c9 Mon Sep 17 00:00:00 2001 From: kumarabhirup Date: Tue, 3 Mar 2026 13:48:10 -0800 Subject: [PATCH] chore: update tsconfig and vitest config Exclude extensions and test from tsconfig; remove extensions from vitest include. --- README.md | 2 ++ apps/web/vitest.config.ts | 4 ---- src/cli/workspace-seed.test.ts | 2 +- src/infra/outbound/deliver.ts | 36 ++++++++++++++++++++++++++++------ tsconfig.json | 4 ++-- 5 files changed, 35 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 6d951843a26..47b6a50b0f3 100644 --- a/README.md +++ b/README.md @@ -416,6 +416,8 @@ git merge upstream/main MIT Licensed. Fork it, extend it, make it yours. +[![Star History Chart](https://api.star-history.com/image?repos=denchHQ/ironclaw&type=date&legend=top-left)](https://www.star-history.com/?repos=denchHQ%2Fironclaw&type=date&legend=top-left) +

GitHub stars

diff --git a/apps/web/vitest.config.ts b/apps/web/vitest.config.ts index a5fa034aa7f..bc955623132 100644 --- a/apps/web/vitest.config.ts +++ b/apps/web/vitest.config.ts @@ -13,10 +13,6 @@ export default defineConfig({ }, test: { environment: "node", - environmentMatchGlobs: [ - ["app/components/**/*.test.tsx", "jsdom"], - ["app/workspace/**/*.test.tsx", "jsdom"], - ], setupFiles: ["./vitest.setup.ts"], include: [ "lib/**/*.test.ts", diff --git a/src/cli/workspace-seed.test.ts b/src/cli/workspace-seed.test.ts index 132d863b1f6..05f59199cf9 100644 --- a/src/cli/workspace-seed.test.ts +++ b/src/cli/workspace-seed.test.ts @@ -1,6 +1,6 @@ import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs"; -import path from "node:path"; import os from "node:os"; +import path from "node:path"; import { afterEach, beforeEach, describe, expect, it } from "vitest"; import { seedWorkspaceFromAssets } from "./workspace-seed.js"; diff --git a/src/infra/outbound/deliver.ts b/src/infra/outbound/deliver.ts index 1c8aa027b19..6891b4aa386 100644 --- a/src/infra/outbound/deliver.ts +++ b/src/infra/outbound/deliver.ts @@ -1,9 +1,33 @@ /** Stub type for test setup; full implementation may live in upstream. */ export type OutboundSendDeps = { - sendDiscord?: (to: string, text: string, opts?: { verbose?: boolean; mediaUrl?: string }) => Promise<{ channel?: string; messageId?: string }>; - sendSlack?: (to: string, text: string, opts?: { verbose?: boolean; mediaUrl?: string }) => Promise<{ channel?: string; messageId?: string }>; - sendTelegram?: (to: string, text: string, opts?: { verbose?: boolean; mediaUrl?: string }) => Promise<{ channel?: string; messageId?: string }>; - sendWhatsApp?: (to: string, text: string, opts?: { verbose?: boolean; mediaUrl?: string }) => Promise<{ channel?: string; messageId?: string }>; - sendSignal?: (to: string, text: string, opts?: { verbose?: boolean; mediaUrl?: string }) => Promise<{ channel?: string; messageId?: string }>; - sendIMessage?: (to: string, text: string, opts?: { verbose?: boolean; mediaUrl?: string }) => Promise<{ channel?: string; messageId?: string }>; + sendDiscord?: ( + to: string, + text: string, + opts?: { verbose?: boolean; mediaUrl?: string }, + ) => Promise<{ channel?: string; messageId?: string }>; + sendSlack?: ( + to: string, + text: string, + opts?: { verbose?: boolean; mediaUrl?: string }, + ) => Promise<{ channel?: string; messageId?: string }>; + sendTelegram?: ( + to: string, + text: string, + opts?: { verbose?: boolean; mediaUrl?: string }, + ) => Promise<{ channel?: string; messageId?: string }>; + sendWhatsApp?: ( + to: string, + text: string, + opts?: { verbose?: boolean; mediaUrl?: string }, + ) => Promise<{ channel?: string; messageId?: string }>; + sendSignal?: ( + to: string, + text: string, + opts?: { verbose?: boolean; mediaUrl?: string }, + ) => Promise<{ channel?: string; messageId?: string }>; + sendIMessage?: ( + to: string, + text: string, + opts?: { verbose?: boolean; mediaUrl?: string }, + ) => Promise<{ channel?: string; messageId?: string }>; }; diff --git a/tsconfig.json b/tsconfig.json index bc6439e921f..fd0e3ecd40c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -23,6 +23,6 @@ "openclaw/plugin-sdk/account-id": ["./src/plugin-sdk/account-id.ts"] } }, - "include": ["src/**/*", "ui/**/*", "extensions/**/*"], - "exclude": ["node_modules", "dist"] + "include": ["src/**/*", "ui/**/*"], + "exclude": ["node_modules", "dist", "extensions", "test"] }