How accurate is an pregnancy test 4 days before period?

Sarah

I took a pregnancy test today which is 4 days before my period and got a negative result, I was really hoping for a positive. How accurate is it? Should I just wait until I miss my period and take one again? I’m really sad and disappointed.