infoderm / patients

:face_with_thermometer: Patients meteor app
GNU Affero General Public License v3.0
5 stars 2 forks source link

Prevent merging commits that contain `it.only` in tests #987

Open make-github-pseudonymous-again opened 1 month ago

make-github-pseudonymous-again commented 1 month ago

One example implementation at https://www.npmjs.com/package/eslint-plugin-no-only-tests. Ideally we would want this to run only in CI, no need to prevent PRs from containing such code BEFORE being merged. While most occurrences should be caught by coverage thresholds, better safe than sorry.

See also: