chore: update tsconfig and vitest config
Exclude extensions and test from tsconfig; remove extensions from vitest include.
This commit is contained in:
parent
365e1650bc
commit
8eb25cfcb7
@ -416,6 +416,8 @@ git merge upstream/main
|
||||
|
||||
MIT Licensed. Fork it, extend it, make it yours.
|
||||
|
||||
[](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>
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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";
|
||||
|
||||
|
||||
@ -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 }>;
|
||||
};
|
||||
|
||||
@ -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"]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user