If you run the unit tests via {{script/test}}, then you end up with a {{package.json}} and {{package-lock.json}} file which are eligible to be staged by {{git}} (or whatever the correct term is), which makes it more difficult to then switch branches.
If you do a {{script/clean}} these files are cleaned up. But perhaps we can also add them to the {{.gitignore}} file.