Drug testing

When you're pregnant is it done by pee or blood??