Cannot find module '@emotion/styled/base' from #2450
Unanswered
lucas-muela-sogeti
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
when running npm run test (using jest)
it fails to find the node library.
this is the file being snapshooted
interface Themeprops {
Theme: any
}
export default function Loading(){
const Theme = useSelector( (state: any) => state.Theme);
}
const Content = styled.div({
display: 'flex',
height: '100%',
justifyContent: 'center',
alignItems: 'center',
width: '100%',
},props=>({
'.MuiCircularProgress-svg':{
fill: props.Theme.Corporate.darkBlue,
color: props.Theme.Corporate.darkBlue,
}
}))
this is the test:
import React from 'react';
import renderer from 'react-test-renderer';
import Section from '../components/Generic/Section';
test('Section works', () => {
expect(
renderer
.create(
.toJSON()
).toMatchSnapshot()
})
dunno why tries to find @emotion/styled/base...
this is the error from jest
Cannot find module '@emotion/styled/base' from 'Loading.tsx'
Beta Was this translation helpful? Give feedback.
All reactions