Almost 38 weeks and testing for BV!!

So I’m almost 38 weeks and that’s when I had my first child. I’m getting tested for BV, she did a cervical check and said my discharge was slightly yellow so she’s testing. But what if I have my baby before I can treat it!? Will delivery with BV cause harm to my baby? ☹️