Each part of every NASA instrument destined for spaceflight goes through radiation testing to ensure it can survive in the harsh radiation of space.

Source: How NASA Prepares Spacecraft for the Harsh Radiation of Space