Chorionic villus sampling (CVS) is a prenatal test that is used to detect birth defects, genetic diseases, and other problems during pregnancy. During the test, a small sample of cells (called chorionic villi) is taken from the placenta where it attaches to the wall of the uterus.