Smoking cannabis during pregnancy

Please no negative comments. To each its own remember but I'm 26 weeks and finally quitting smoking so I know for sure that I'm clean. I'm just worried that my baby might not be if the do test for thc. How long does it take for it to leave the baby system as well? Do all hospitals test for drug automatically???