preact-compat-enzyme
preact-compat-enzyme copied to clipboard
Cannot set property error
I'm using this with Jest and have babel-jest set up to alias the modules as below
{
plugins: [
['module-resolver', {
alias: {
'react-dom/server': 'preact-render-to-string',
'react-addons-test-utils': 'preact-test-utils',
react: 'preact-compat-enzyme',
'react-dom': 'preact-compat-enzyme',
},
}],
],
}
but I still get Cannot set property _reactInternalInstance of #<Component$1> which has only a getter
I looked at #4 but I already have aliases set up
Am I missing something?