ref: d5a9a751f0e01ecb11c0c3c4cf9182ef4458374e koehr.in/content/til/20220615_disallow_focussed_tests.md -rw-r--r-- 571 bytes
d5a9a751 — koehr new TIL 2 months ago

+++ title = "Disallowed Focussed Tests and how it saved my day" date = "2022-06-15" extra.source = "https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/no-focused-tests.md" +++

Today I was about to push a focussed test. A focussed test, you ask?

In Jest (and others) one can run only a specific test, by writing it.only(.... Pushing this to production might create some funny or not so funny side effects though. Luckily there is the no-focussed-tests linter rule in eslint-plugin-jest.