When did you quit smoking during your pregnancy?

Or if you didn’t quit what happened when you tested dirty at birth?

I’ve quit but I’m just concerned I quit too late and I’ll still be dirty by the time I have my baby. I was a heavy smoker and I didn’t quit when I found out.