When you are working locally, you just need a single node Replica Set (RS). There is no need to deploy a full 3 nodes RS on the same host. It will just consume more ressources and generate useless IOPS.
Usually when I work locally, I just use Docker and deploy a temporary node but you can also persist the data in a volume if you want to reuse it next time.
alias mdb='docker run --rm -d -p 27017:27017 -h $(hostname) --name mongo mongo:6.0.3 --replSet=test && sleep 4 && docker exec mongo mongosh --quiet --eval "rs.initiate();"'
alias m='docker exec -it mongo mongosh --quiet'
Single node RS also support Change Streams and Transactions just like a “normal” production ready 3 nodes RS.