Covid test before labor

Cl

So for anyone who has had the test done what do they do . I heard the test is annoying and can hurt. I just want to know what they do so I can be prepared.