Covid test pregnant

Me

My doctor just told me it’s mandatory for all pregnant women to get Covid tested before delivery at every hospital in the US. I really don’t want to do the test as me and my husband have been taking precautions. Does anyone who recently gave birth have experience with this? I wonder if I can decline.