What's this chromosomal sex test I keep hearing about?

Chaka • 3 yr old + twins in January
I'm curious about what it is and why someone would want to do it?