Closed jira-to-github-migrator-test[bot] closed 11 months ago
Create a static mock for styled components like this:
jest.mock('styled-components', () => ({ ...jest.requireActual('styled-components'), useTheme: () =>mockTheme }))
Then replace all occurences of this by jest.mock('styled-components')
Environment: - Linked issues:
sarahsporck - 24.1.2022, 14:09:28
Create a static mock for styled components like this:
Then replace all occurences of this by jest.mock('styled-components')
Environment: - Linked issues: