From cc3f85284bdbf2e52f3e9dae6e3ffac3f17737c1 Mon Sep 17 00:00:00 2001 From: MythEclipse Date: Mon, 18 May 2026 21:54:57 +0700 Subject: [PATCH] docs: add dynamic image fetching details for unit tests in CLAUDE.md --- CLAUDE.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CLAUDE.md b/CLAUDE.md index d444ef8..46900c4 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -27,6 +27,7 @@ Default to using Bun instead of Node.js. ## Testing Use `bun test` to run tests. Jalankan tes secara spesifik (misal `bun test test/rateLimit.test.ts`) untuk menghindari polusi mock antar berkas tes ketika dijalankan bersamaan. +- Pengujian unit test (`telegram.test.ts` dan `upload.test.ts`) mengunduh gambar asli Wikimedia (PNG transparan) secara dinamis via fetch, dengan fallback biner lokal JPEG 1x1px jika luring. ```ts#index.test.ts import { test, expect } from "bun:test";