how do i tell my best friend?

my best friend and I have known each other for 12 years now and I don't know how to tell her I'm pregnant.

I've been trying for a year and she has been longer and everytime someone gets pregnant she is instantly salty and wishes ill on them and once she even wished ill on the baby.

I don't know how to tell her and not be mad at me.