The rule is you need a PCR test that was taken 48hr or less from your flight departure time. So for example if your flight is as 13:00 on Wednesday you need a negative test that was taken any time after 13:00 Monday
If you are flying international into Jakarta you will need a "valid" PCR test. Right now as of 15 Dec. Indonesia considered an international travel PCR test "valid" if its was taken with in the last 7 days. Right now they also do not require quarantine but it is recommended.
I know someone that just flew into Indonesia couple weeks ago from Sweden to do a CCR course with a friend of mine and he said it was very easy all they did was look at his PCR test when he landed and then check it again for the domestic flight from Jakarta to Lombok.
I just left Indonesia couple weeks ago for a work contract else where in the world and just needed a PCR test that was done within 72hr of my flight this was a Singapore Airline requirement. I will be heading back to Indonesia in a couple months for another diving trip hopefully by then with this vaccine coming out things will open up more and I can just enter on a simple VOA and not have to do the the B211A visa shenanigan's although with the new E-visa system its supposed to be a lot easier and quicker than it was be for.
Garuda has listed all the travel rules out very nicely
https://www.garuda-indonesia.com/id/en/news-and-events/kebijakan-operasional-terkait-covid19