Understanding how to use dynamic styles & animations.
- Don't need
babel-jest
it's included under the hood withjest
. - Refer to note in
.babelrc
about test environment. - Don't need to specific
NODE_ENV=test
jest
does this by default. - There are a few properties that must be integers & not string values. (i.e.
fontWeight
,opacity
,zIndex
) - Follow animation notes here & here for using
glamor
&glamorous
. - When using
content
cannot writecontent: '';
this is considered invalid because you are sending nothing as a value so you must writecontent: '""';
to pass an empty string that will take on the properties listed in::before
&::after
.
- Recreate the dynamic search bar found here using
glamorous
. - Write tests for the search bar. HOCs are NOT tested ๐ฅ need to look up how to achieve this