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.
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: