It depends on the disease. Some genetic heart diseases, like certain arrhythmic disorders, have a well-established genetic test. Others are known to have a genetic component, but it's not clear what gene is responsible, and no genetic test exists.