A bilirubin blood test is used to check the health of your liver. The test is also commonly used to help diagnose newborn jaundice. Many healthy babies get jaundice because their livers aren’t developed enough to get rid of enough bilirubin. Newborn jaundice is usually not harmful and clears up within a few weeks.