openpencil/tests/engine/vue/controls
Danila Poyarkov c8d68acc9e
chore: prefer es-toolkit helpers and lint the mechanical cases (#898)
* chore: prefer es-toolkit helpers and lint the mechanical cases

AGENTS.md now names the es-toolkit helpers to reach for instead of hand-written equivalents, and the exceptions: a single clear native call or a measured hot path. The new open-pencil/prefer-es-toolkit rule rejects filter(Boolean) and Set round trips on arrays, the two cases that need no type information, and the existing 45 sites use compact and uniq. tools/ci/policy runs before dependencies are installed, so the rule is off there.

* refactor: deduplicate diagnostic categories with uniq

* fix: keep es-toolkit out of serialized Playwright callbacks

The codemod rewrote a filter(Boolean) inside a page.evaluate callback, which Playwright runs in the page where the compact import does not exist. The spec filters there again, and the rule now skips callbacks passed to evaluate, $eval, $$eval, evaluateHandle, addInitScript and waitForFunction, and filter calls on iterators from values, keys, entries and matchAll, which compact cannot take.

* test: write the prefer-es-toolkit cases like the other rule tests

Short standalone snippets, as in the base64 and JSON rule tests, instead of a declaration prefix on every case and inline object types.
2026-10-05 09:34:00 +00:00
..
appearance.test.ts fix(properties): preserve shared corner bindings in collapsed controls 2026-09-13 14:45:26 +03:00
binding-mode-edit.test.ts fix(bindings): resolve modes and preserve edit transactions (#671) 2026-09-10 12:14:04 +03:00
binding-modes.test.ts fix(bindings): resolve modes and preserve edit transactions (#671) 2026-09-10 12:14:04 +03:00
color-binding-provider.test.ts fix(bindings): resolve modes and preserve edit transactions (#671) 2026-09-10 12:14:04 +03:00
component-properties.test.ts feat: create, fill, and edit slots (#862) 2026-10-04 17:02:28 +00:00
constraints.test.ts feat(fig): support text on path 2026-08-17 12:00:01 +03:00
node-preview.test.ts fix(editor): close preview and history lifecycle gaps 2026-09-16 03:36:44 +03:00
number-expression.test.ts
property-preview.test.ts feat(editor): checkpoint live interaction improvements 2026-09-15 11:36:17 +03:00
shared-style.test.ts
stroke.test.ts chore: prefer es-toolkit helpers and lint the mechanical cases (#898) 2026-10-05 09:34:00 +00:00
typography-depth.test.ts