preact-compat-enzyme icon indicating copy to clipboard operation
preact-compat-enzyme copied to clipboard

Cannot set property error

Open bkazi opened this issue 6 years ago • 1 comments

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?

bkazi avatar Aug 30 '17 14:08 bkazi