Genetic test and sex of baby?

I have 4 kids and with none of my kids they did a test that give the sex of the baby but supposedly the testing they did on me will tell me if it’s a boy or a girl and I’ve always been to the same clinic with all my pregnancies 🤔 ... anyone else had this test done? Is this a new thing?