smart-connections-ava-and-migration-harness
Installation
SKILL.md
Smart Connections AVA and Migration Harness
Use this skill when adding or updating focused Smart Connections regression coverage for utilities or migrations, especially when you need fixture-driven AVA tests and idempotent migration checks.
Critical
- Keep the test file next to the code under test:
src/utils/build_connections_codeblock.test.jsfor utility regressionsmigrations/migrate_hidden_connections.test.jsfor migration regressions
- Import Ava with
import test from 'ava';and import the subject with an explicit.jsextension. - Always cover:
- the happy path
- a no-op path (
undefined, empty object/array, already-migrated input) - nested object assertions with
t.deepEqual
- Migration tests must verify idempotency: running the migration twice should return the same shape the second time.
- Do not use snapshots or integration-style demos here. This skill is for isolated regression coverage only.