What the heck is a glucose test?!

Faith

I’m type 2 diabetic and 21 weeks pregnant I’ve not done one of these yet and I have no idea if I am in the future. What does it do and any other information on it would be great