I am using Jest unit testing in a folder called test in root, and I am trying to unit test nodejs on multiple branches. Are project is set in a git repository. When my team is done with a branch they will merge it with master. Normally I'd work on master if I was using code, but I'd like to do some things on their branches. Usually I don't touch other branches if the code isn't complete, but since this is for the intent of unit testing their code, and not developing it, I think it's ok to look at their latest commits on branch1 and branch2. Am I correct that this is correct to do so, and if so what would be the best way to use git in this situation?
EDIT - The main problem is that they will not merge without having large changes in between merging, and what I test now can and will be vastly different than what it was on master.
This is how my team is expecting me to solve the issue, but I'm starting to think that the issue itself is how my team using git on a whole separate branch.