Found out yesterday

So a week ago this last Friday my husband told me he wanted a divorce and yesterday night I took a pregnancy test and it was positive. I already have two kids with him. I'm not necessarily worried about not being able to provide but man did this come at a horrible time. Life was good. It wasn't that it was a bad situation. He flipped like a switch and that was the end of it. I'm still in shock.