refactor: executor protocol, fallback, debounce

This commit is contained in:
2026-09-26 02:20:34 +05:00
parent 5f77c097e2
commit 0933f1cdea
14 changed files with 739 additions and 301 deletions
+13
View File
@@ -65,6 +65,19 @@ describe("registry-new (переведённые инструменты)", () =>
}
});
it("DOM-dependent tools bypass the worker", () => {
for (const id of [
"png-to-base64",
"png-to-data-uri",
"base64-to-png",
"data-uri-to-png",
"jpeg-artifacts-png",
"placeholder-png",
]) {
expect(TOOLS.find((tool) => tool.id === id)?.domOnly, id).toBe(true);
}
});
it("source-aware dimension defaults применяются только к image tools", () => {
for (const tool of TOOLS) {
for (const field of Object.values(tool.schema.fields)) {