Tim Deschryver 5/10/2020

Don't commit focused tests

Read Original

This technical article discusses the common problem of accidentally committing focused tests (e.g., `fit`, `fdescribe`) in software development. It details several preventative solutions: a Visual Studio Code extension to highlight focused tests, configuration for TSLint and ESLint (including `eslint-plugin-jest`) to ban specific functions, and a pre-commit hook script using tools like husky to block commits containing focused tests.

Don't commit focused tests

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week