Useful method: fit, it skips all others tests on a file, but a dangerous one, found out yesterday a wrong commit skipping all other tests for weeks without no one noticing.
Good one!
To prevent these kind of things, you can take a loot at eslint-plugin-jest, especially this rule. It disallows focused tests (the use of .only or fit).
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Useful method: fit, it skips all others tests on a file, but a dangerous one, found out yesterday a wrong commit skipping all other tests for weeks without no one noticing.
Good vscode extension: marketplace.visualstudio.com/items...
Good one!
To prevent these kind of things, you can take a loot at eslint-plugin-jest, especially this rule. It disallows focused tests (the use of
.only
orfit
).