Skip to content

Testbed to test theme-ui with react testing library

Notifications You must be signed in to change notification settings

nkint/theme-ui-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

In browser everything is ok.

In the test I'm expecting to have background color from theme -> colors -> primary, while it seems to be ignored.

See Components.tsx line 45 to see how to pass the test without using theme.colors.primary

Install

yarn

See failing test:

yarn test

See correct result in browser:

yarn start

Stack

  • React
  • Theme-ui
  • Create React App
  • React testing library
  • jest dom

Versions

  • See package.json
  • Mac OS: 10.15.1
  • Node: v13.11.0
  • Yarn: 1.22.4

About

Testbed to test theme-ui with react testing library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published