Skip to content

Small sample of a styled-components issue with jest to help us figure out why it's not working

Notifications You must be signed in to change notification settings

MicheleBertoli/sc-jest-issue

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Styled components Jest issue

components.js exports a default component that is being tested in App.test.js

If a named export is added to components.js, the existing jest test fails because the classnames are adjusted.

How to test

Run yarn test to see the passing test.

Uncomment the line exporting Bar in components.js.

Run yarn test again to see a failing test.

About

Small sample of a styled-components issue with jest to help us figure out why it's not working

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 63.1%
  • HTML 30.4%
  • CSS 6.5%