open-brainy/tests/unit
David Snelling 656d9f6f92
Some checks are pending
CI / Node 22 (push) Waiting to run
CI / Node 24 (push) Waiting to run
CI / Integration + conformance (Node 22) (push) Waiting to run
CI / Bun (latest) (push) Waiting to run
test(hygiene): close every brain the remaining suites create
id-normalization.test.ts's makeBrain() and degraded-reads-surfaced.test.ts's
per-test brains had nothing tracking them — both now use a describe-scoped
opened[] array drained by afterEach.

find-hybrid-filter-before-hydrate.test.ts had two beforeAll-built brains
(one per describe block) with no matching afterAll.

multi-process-safety.test.ts and plugin-autodetect.test.ts/plugin.test.ts
left a brain whose init() was expected to reject (a rejected init() still
registers the instance in Brainy's global instance registry — the
constructor does that unconditionally — so it still needs close() to
deregister, or the process-level shutdown hooks never see the registry go
idle for the rest of the run).
2026-09-03 09:18:57 -07:00
..
aggregation fix(aggregation): the lifecycle cluster — flush stamps, behind-stamp catches up incrementally, the native rebuild finally gets invoked, deletes are never silently skipped 2026-08-05 15:49:12 -07:00
brainy test(hygiene): close every brain the remaining suites create 2026-09-03 09:18:57 -07:00
db fix(generation-store): commitTransaction refuses while single-ops are pending — the order invariant is enforced, not assumed 2026-09-02 10:55:40 -07:00
graph test(hygiene): close every brain the unit suite creates 2026-09-03 09:06:10 -07:00
hnsw feat(index): watermark stamps on every TS projection — adopt/catchup/rescan verdicts at load, stamp-after-data 2026-08-10 10:55:11 -07:00
import refactor(8.0): remove dead, unreachable, and unwired modules 2026-06-24 15:18:40 -07:00
indexes/columnStore feat(log): log authority is the fleet default — adopt-at-open, oracle-gated; plus the power-cut throw-site cures and the loud torn-record contract 2026-08-11 08:37:38 -07:00
neural test(hygiene): close every brain the unit suite creates 2026-09-03 09:06:10 -07:00
performance feat(8.0): zero-config finalize + cut JS quantization (config.vector = recall + persistMode) 2026-06-15 10:08:51 -07:00
plugin feat(plugin): every provider write surface carries the real committed generation 2026-08-10 09:29:06 -07:00
release fix(wall): every entry carries an https permalink — the product engine links its public package page; null refused, an unknown product refuses by name 2026-09-02 14:59:49 -07:00
reprojection feat(reprojection): the one doors-open machinery — budget-capped, yielding, foreground-preempted, atomic-swap; poison records quarantine typed 2026-08-10 11:39:27 -07:00
storage test(hygiene): close every brain the unit suite creates 2026-09-03 09:06:10 -07:00
transaction fix: transaction timeouts are a typed no-hot-retry contract; engine-side non-retry pinned; dead transaction path removed 2026-07-24 16:01:41 -07:00
types feat(namespace): NO SPECIAL NAMES + storage fidelity — the ruled completion of the field-addressing law 2026-08-03 16:59:32 -07:00
universal feat(8.0): id-normalization (#18) + aggregation min/max delete-safety + RC-safe release 2026-06-20 14:46:40 -07:00
utils test(hygiene): close every brain the unit suite creates 2026-09-03 09:06:10 -07:00
vfs feat(8.0): API simplification — remove neural()/Db.search, one storage path key, integration→0 2026-06-20 13:31:11 -07:00
boundary-no-native.test.ts refactor(8.0): API-surface + quality polish from the readiness audit 2026-06-29 10:04:19 -07:00
brainy-core.unit.test.ts test(hygiene): close every brain the unit suite creates 2026-09-03 09:06:10 -07:00
brainy-get-optimization.test.ts feat(8.0)!: flip requireSubtype default to true (BRAINY-8.0-SUBTYPE-CONTRACT § C-1) 2026-06-09 14:58:25 -07:00
cold-open-rebuild-gate.test.ts fix: cold-open no longer re-derives durable indexes — complete the readiness contract for all three providers 2026-07-07 10:39:00 -07:00
create-entities-default.test.ts feat(8.0): API simplification — remove neural()/Db.search, one storage path key, integration→0 2026-06-20 13:31:11 -07:00
fieldTypeInference.test.ts feat: production-ready value-based temporal field detection 2025-10-16 13:58:57 -07:00
get-index-status-readiness.test.ts test(hygiene): close every brain the unit suite creates 2026-09-03 09:06:10 -07:00
metadata-cold-read-guard.test.ts test(hygiene): close every brain the unit suite creates 2026-09-03 09:06:10 -07:00
migration-lock.test.ts test(hygiene): close every brain the unit suite creates 2026-09-03 09:06:10 -07:00
plugin-activation-loudness.test.ts fix(plugins): the silent-degrade doors close — a broken accelerator install can never read as absent 2026-08-25 10:01:56 -07:00
plugin-autodetect.test.ts test(hygiene): close every brain the remaining suites create 2026-09-03 09:18:57 -07:00
plugin-version-coupling.test.ts test: version-coupling pins go major-agnostic — the 8.x literals broke at the 9.0.0 bump while the coupling law itself behaved correctly 2026-08-04 10:05:34 -07:00
plugin.test.ts test(hygiene): close every brain the remaining suites create 2026-09-03 09:18:57 -07:00
process-exit-sweep.test.ts fix: no script shape can hang on brainy's internals — unref every maintenance timer + one-shot beforeExit 2026-07-02 17:26:22 -07:00
shutdown-hooks-lifecycle.test.ts fix: a bare script now exits cleanly after close() — release every process keep-alive 2026-07-02 16:39:16 -07:00
test-suite-coverage-guard.test.ts test(gate): the coverage guard counts the perf lane's config as a gate 2026-09-02 11:47:05 -07:00
type-filtering.unit.test.ts test(hygiene): close every brain the unit suite creates 2026-09-03 09:06:10 -07:00
validate-invariants-delegation.test.ts test(hygiene): close every brain the unit suite creates 2026-09-03 09:06:10 -07:00
vector-cold-read-guard.test.ts test(hygiene): close every brain the unit suite creates 2026-09-03 09:06:10 -07:00
vfs-multi-instance-diagnostic.test.ts test(hygiene): close every brain the unit suite creates 2026-09-03 09:06:10 -07:00
vfs-readdir-recursive.test.ts feat(vfs): implement readdir's recursive option — typed since 7.30, never read 2026-08-25 10:10:01 -07:00
vfs-restart-fix.test.ts feat(8.0): API simplification — remove neural()/Db.search, one storage path key, integration→0 2026-06-20 13:31:11 -07:00
where-operator-validation.test.ts fix: validate where-operators and align the in-memory matcher to the documented set 2026-07-07 12:23:36 -07:00