Having fun writing pocs for solana programs
Open one terminal and run your validator code(rm -rf test-ledger/ && clear && solana-test-validator) Open another terminal and deploy the necessary programs and run test script(solana program deploy level/level0.so && solana program deploy target/deploy/level0exploit.so && yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/level0.ts )
If you are reading this and you figured how to succesffully test it, feel free to send a PR to create a better build system preferably with bash but anything better than this manual torture will do