If you are not vaccinated your test needs to be 1 day before entering US.

If you are vaccinated the test can be can be 3 days.

Either way you need a negative test, just the amount of days is different

https://www.cdc.gov/coronavirus/2019...travelers.html