mirror of
https://github.com/tiennm99/claude-status-webhook.git
synced 2026-10-11 03:13:18 +00:00
build(deps): migrate to @cloudflare/vitest-plugin 1.x
@cloudflare/vitest-pool-workers was renamed to @cloudflare/vitest-plugin for its v1 release; the old name stopped at 0.22.0 with pinned vulnerable wrangler and miniflare versions. Vitest stays on 4: the plugin's peer range is still ^4.1.0.
This commit is contained in:
1 parent
c57a04a7cf
commit
83103b3b3b
4 files changed
+180
-959
No files matched your search
@@ -13,7 +13,7 @@ Telegram bot that forwards [status.claude.com](https://status.claude.com/) (Atla
|
||||
- `npx wrangler deploy --dry-run` — Verify build without deploying
|
||||
- `node scripts/setup-bot.js` — One-time: register bot commands + set Telegram webhook (interactive prompts)
|
||||
|
||||
- `npm test` — Run tests (vitest + @cloudflare/vitest-pool-workers, runs in Workers runtime)
|
||||
- `npm test` — Run tests (vitest + @cloudflare/vitest-plugin, runs in Workers runtime)
|
||||
- `npm run test:watch` — Run tests in watch mode
|
||||
|
||||
No linter configured.
|
||||
|
||||
Generated
+176
-955
File diff suppressed because it is too large.
Load diff
+1
-1
@@ -26,7 +26,7 @@
|
||||
"hono": "^4.12.30"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@cloudflare/vitest-pool-workers": "^0.17.0",
|
||||
"@cloudflare/vitest-plugin": "^1.3.6",
|
||||
"vite": "^8.1.2",
|
||||
"vitest": "^4.1.9",
|
||||
"wrangler": "^4.112.0"
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import { defineConfig } from "vitest/config";
|
||||
import { cloudflarePool, cloudflareTest } from "@cloudflare/vitest-pool-workers";
|
||||
import { cloudflarePool, cloudflareTest } from "@cloudflare/vitest-plugin";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
@@ -8,7 +8,7 @@ export default defineConfig({
|
||||
miniflare: {
|
||||
// Override remote KV with local-only for tests
|
||||
kvNamespaces: ["claude_status"],
|
||||
// Pre-add flags so vitest-pool-workers doesn't emit debug noise
|
||||
// Pre-add flags so the Workers Vitest plugin doesn't emit debug noise
|
||||
compatibilityFlags: [
|
||||
"enable_nodejs_tty_module",
|
||||
"enable_nodejs_fs_module",
|
||||
|
||||
Reference in new issue
Block a user