It depends on how bad it is. Half of the divorce cases out there involve one or the other party being on anti-depressant medications, so that in and of itself won’t matter much. It really depends on how severe the mental illness is, and how it affects your parenting. If the mental illness negatively affects your parenting, or poses a danger of harm to the children, that will obviously be more relevant. And unless your mental health records are already sufficient for a custody evaluator to assess your mental health, you can expect that a custody evaluation will include a psychological evaluation as well.
A divorce can get complicated if the parties have property (real estate, automobiles, vacation property, pensions, jewelry, etc.) or minor children. Usually, the divorce can be done more quickly if the spouses agree on how to divide the property and handle custody and parenting time with the children. Many cases start out with a lot of disputes, but then the parties are able to reach an agreement. Parties often reach agreement after using alternative dispute resolution (ADR) services outside of court. NOTE: If you feel threatened by or unsafe with the other party, you may want to get legal advice or help from an advocate before using ADR.