You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6 lines
424 B
Markdown
6 lines
424 B
Markdown
# Disallowed Focussed Tests and how it saved my day
|
|
|
|
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](https://github.com/jest-community/eslint-plugin-jest).
|