Many diagnostic cardiac tests are safe to use during pregnancy with the exception of tests with X-rays or nuclear studies. The electrocardiogram may detect arrhythmias or irregular heartbeats, problems with the conduction electrical system or evidence of prior cardiac problems. It is a safe test during pregnancy.