Run npm test on pre-commit and during CI
- Adds the
@fastify/pre-commitpackage which automatically runsnpm testas a pre-commit hook. - Adds
npm testto the GitLab CI as well. - Fixes minor linting issues.
Bug: T371286
How to register an account on GitLab. Due to spam, new accounts are locked until approved by an admin or the approver bot. Your GitLab account gets automatically approved within one hour if you are a member of Trusted Contributors in Gerrit, or a member of the Trusted-Contributors group in Phabricator and linked your Developer account ("LDAP") to your Phabricator account. If none of these apply, file an unlock request to expedite access. Only if you are WMF staff: Create your GitLab account, have "Wmf" group membership in IDM, link your Developer account ("LDAP") to your Phabricator account, and get automatically approved.
Support: mw:GitLab, how to host a project on GitLab, #wikimedia-gitlab on libera.chat, #GitLab on Phabricator.
@fastify/pre-commit package which
automatically runs npm test as a pre-commit hook.npm test to the GitLab CI as well.Bug: T371286