How early can you test?

I have been feeling super nauseous and tired lately, and I usually don’t get nauseous easily so I took a test, but it was negative might have a stomach infection or idk what’s going on, but how early did you guys test and get a positive?