what blood test do i need to get done to find out the gender of baby?

Ive heard a lot of girls saying they got a blood test to find out their babies genders, what test is this?