test(hygiene): close every brain the integration suite creates

Each file opened a Brainy in beforeAll/beforeEach (or a single it()) and
never closed it. related-verb-array.test.ts and vfs-containment-batched.test.ts
were real bugs: their afterAll discarded the brain with `brain = null as any`
without ever calling close() first.
This commit is contained in:
David Snelling 2026-09-03 09:06:04 -07:00
parent 4c344782a7
commit d6e7453f1f
7 changed files with 24 additions and 5 deletions

View file

@ -34,6 +34,10 @@ describe('API Parameter Validation', () => {
})
})
afterAll(async () => {
await brain.close()
})
it('should use "where" parameter for metadata filtering', async () => {
const results = await brain.find({
where: { category: 'test-category' },