Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the exact same node version locally as in CI
Apparently, there's a difference in jest's V8 test reporting coverage depending on which version of node is being used. nodejs/node#51251 According to the folks talking about that issue in their repo, here: chapter-three/next-drupal#740 (comment) They tested and found that the coverage discrepancy occurs in node 18 after upgrading from version 18.19.1 to version 18.20.0. It also occurs in node 20 after upgrading from version 20.9.0 to version 20.10.0. Locally, we have been using 18.18.2 where V8 coverage reporting still appears to be working correctly for us, but CI is reporting something else (since it's only pinned to version 18 prior to this commit). Since 18.18.2 seems to work for us, and the folks commenting in the linked issue seem to agree that the issue shouldn't appear for us in that version, we'll keep using node version 18.18.2 locally and explicitly instruct GH actions to also use that version of nodejs.
- Loading branch information