The test assumed bib.sqlite always has items when present. In CI, a stale or empty bib.sqlite could exist without data, causing the export to produce an empty library.json. Now validates the database has items before asserting on the export output.
The test assumed bib.sqlite always has items when present. In CI, a stale or empty bib.sqlite could exist without data, causing the export to produce an empty library.json. Now validates the database has items before asserting on the export output.