is buying laptop necessary for vulnerability and penetration testing ?

i am a beginner at programming and i have a pc desktop . i have read that wireless penetration testing can be done only by laptops . will i need wireless pen testing for producing secure apps,games or whatever?
or the pc desktop will be sufficient ?

I think you are worrying about the wrong things, or at least in the wrong order.

Focus first on getting your games and apps written and in a release-able state. Then think about security and testing - you’ll want to hire an expert to do the testing!

But in short, no: you can get add-ons so your desktop can connect to Wifi, Bluetooth, or other potentially insecure protocols [and therefore can test security on said protocols].