test: 508 tests, 79% line coverage - config eval happy path

- Full happy path test for ConfigurationEvaluationState
- Fix flaky integration tests
- Coverage stable at 79% lines
This commit is contained in:
Kevin L'Hereec committed 2026-06-02 16:54:04 +02:00
1 parent 575975e211
commit 818c661f21
2 files changed
+36 -3

No files matched your search

@@ -74,10 +74,11 @@ describe('BaseModel (integration)', () => {
})
it('find returns multiple documents', async () => {
const col = db.collection('test_base')
await col.insertMany([{ type: 'a' }, { type: 'a' }, { type: 'b' }])
const results = await col.find({ type: 'a' }).toArray()
const col = db.collection('test_find_multi')
await col.insertMany([{ t: 'a' }, { t: 'a' }, { t: 'b' }])
const results = await col.find({ t: 'a' }).toArray()
expect(results).toHaveLength(2)
await col.drop()
})
it('countDocuments returns correct count', async () => {