Amniocentesis is a test that helps your healthcare provider check your baby for certain genetic conditions. It’s usually done between 15 and 20 weeks of pregnancy, but the choice of whether you have this test is yours.