it('should handle errors', async () => {
    db.query.mockImplementation(() => Promise.reject('nope'))

    try {
      await views(null, { offset: 0, limit: 10 }, { db })