What’s the earliest you test for pregnancy?

I was wondering when’s the earliest I can test for pregnancy?