Marijuana while pregnant

Im not asking to be judged because i don't care about anyones negative opinions. but am very curious

who was drug tested while pregnant by there ob? or did they wait to test you after you had your baby?