Expand description
pre-push-run-tests-js — run each touched JS package’s gate before pushing.
git feeds pre-push one line per ref on stdin. That list is parsed ONCE by
the dispatcher (see pushrefs) and lent here, because stdin can only be
consumed once and more than one check needs it:
Constants§
- JS_EXTS
- The extensions this check treats as “JS worth testing”. Exported so
registry.rsdeclares the scope from the same constant — seelint_json_yaml::EXTSfor the drift this prevents.
Functions§
- defines_
script - Does
package.jsondefinescriptunder “scripts”? - gate_
for - The GATE, minus what a
pre-commitdeclaration already covers. - package_
dirs - Tracked
package.jsonpaths, as directories relative to the repo root. - packages_
to_ test - Packages that actually contain one of the changed files.
- run