You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{GluestackUIProvider,Text}from'@gluestack-ui/themed'importReactfrom'react'importrendererfrom'react-test-renderer'import{firstConfigs,secondConfig}from'./configs'constrenderWithTheme=(component: React.JSX.Element)=>{returnrenderer.create(<React.Fragment><GluestackUIProviderconfig={firstConfigs}>{component}</GluestackUIProvider><GluestackUIProviderconfig={secondConfig}>{component}</GluestackUIProvider></React.Fragment>)}describe('TextSamples',()=>{it(`renders correctly`,()=>{consttree=renderWithTheme(<Text>the quick brown fox jumps over the lazy dog</Text>)expect(tree.toJSON()).toMatchSnapshot()})})
Actual
Both snapshot have the same text color.
Excpected
To create snapshot files with two text components and each should be its own primary400 color.
gluestack-ui Version
latest at this point
Platform
Expo
React Native CLI
Next
Web
Android
iOS
Other Platform
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Description
Passing differenct config to the
GluestackUIProvider
s does not result to a proper snapshotThis issue can be related too: #1450
CodeSandbox/Snack link
No response
Steps to reproduce
config
folder create two filesfirstBrandColors
andsecondBrandColors
config
folder create another fileconfigs.ts
TextSamples.test.tsx
Actual
Both snapshot have the same text color.
Excpected
To create snapshot files with two text components and each should be its own primary400 color.
gluestack-ui Version
latest at this point
Platform
Other Platform
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: