A friend who's worth your time and energy won't react negatively or passive-aggressively whenever you have good news.
They will care about how you're doing instead of being completely self-absorbed, and they will allow you the space to be your authentic self.
https://www.psychologytoday.com/intl/blog/social-instincts/202302/3-signs-that-it-might-be-time-to-cut-off-a-friend