This repository has been archived by the owner on Dec 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 973
Code Guidelines
Brian Johnson edited this page Jun 15, 2017
·
9 revisions
- Avoid calling anything that triggers a forced reflow. If you can't avoid it, try to call as infrequently as possible https://gist.github.com/paulirish/5d52fb081b3570c81e3a
- If you are moving/renaming files or methods as part of refactoring it should be done in a separate standalone PR before making other changes. This simplifies the changeset for reviewers and creates a relatively safe commit that can be pulled into other active branches.
Tests should be independent and work correctly when run individually or as a suite.
-
it
blocks should only contain assertions and should not modify the DOM or app state. -
it
blocks should not be dependent on previousit
blocks at the same depth. If you are testing a sequence of events use nesteddescribe
blocks example
insecurity test
Vertical Side Tabs Tab Suspender