chore: update tsconfig and vitest config

Exclude extensions and test from tsconfig; remove extensions from vitest include.
This commit is contained in:
kumarabhirup 2026-03-03 13:48:10 -08:00
parent 365e1650bc
commit 8eb25cfcb7
No known key found for this signature in database
GPG Key ID: DB7CA2289CAB0167
5 changed files with 35 additions and 13 deletions

View File

@ -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)
<p align="center">
<a href="https://github.com/DenchHQ/ironclaw"><img src="https://img.shields.io/github/stars/DenchHQ/ironclaw?style=for-the-badge" alt="GitHub stars"></a>
</p>

View File

@ -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",

View File

@ -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";

View File

@ -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 }>;
};

View File

@ -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"]
}