Storybook: jest versions available: 22.0.0

Created on 18 Dec 2017  ·  2Comments  ·  Source: storybookjs/storybook

There are new versions of jest available from npm.

22.0.0

_No content found._

update maintenance

Most helpful comment

not sure if related, but trying to upgrade jest to 22 broke storyshots on a codebase I work on with:

 FAIL  ./Storyshots.test.js
  ● Test suite failed to run

    Invariant Violation: Target container is not a DOM element.

      at invariant (node_modules/fbjs/lib/invariant.js:42:15)
      at renderSubtreeIntoContainer (node_modules/react-dom/cjs/react-dom.development.js:15180:34)
      at Object.render (node_modules/react-dom/cjs/react-dom.development.js:15290:12)
      at renderException (node_modules/@storybook/react/dist/client/preview/render.js:66:22)
      at renderPreview (node_modules/@storybook/react/dist/client/preview/render.js:140:12)
      at renderUI (node_modules/@storybook/react/dist/client/preview/index.js:89:26)
      at Object.dispatch (node_modules/redux/lib/createStore.js:186:7)
      at ConfigApi._renderError (node_modules/@storybook/react/dist/client/preview/config_api.js:57:24)
      at render (node_modules/@storybook/react/dist/client/preview/config_api.js:76:19)
      at ConfigApi.configure (node_modules/@storybook/react/dist/client/preview/config_api.js:91:9)
      at evalmachine.<anonymous>:19:22
      at runWithRequireContext (node_modules/@storybook/addon-storyshots/dist/require_context.js:102:3)
      at testStorySnapshots (node_modules/@storybook/addon-storyshots/dist/index.js:105:35)
      at Object.<anonymous> (Storyshots.test.js:2:31)

All 2 comments

not sure if related, but trying to upgrade jest to 22 broke storyshots on a codebase I work on with:

 FAIL  ./Storyshots.test.js
  ● Test suite failed to run

    Invariant Violation: Target container is not a DOM element.

      at invariant (node_modules/fbjs/lib/invariant.js:42:15)
      at renderSubtreeIntoContainer (node_modules/react-dom/cjs/react-dom.development.js:15180:34)
      at Object.render (node_modules/react-dom/cjs/react-dom.development.js:15290:12)
      at renderException (node_modules/@storybook/react/dist/client/preview/render.js:66:22)
      at renderPreview (node_modules/@storybook/react/dist/client/preview/render.js:140:12)
      at renderUI (node_modules/@storybook/react/dist/client/preview/index.js:89:26)
      at Object.dispatch (node_modules/redux/lib/createStore.js:186:7)
      at ConfigApi._renderError (node_modules/@storybook/react/dist/client/preview/config_api.js:57:24)
      at render (node_modules/@storybook/react/dist/client/preview/config_api.js:76:19)
      at ConfigApi.configure (node_modules/@storybook/react/dist/client/preview/config_api.js:91:9)
      at evalmachine.<anonymous>:19:22
      at runWithRequireContext (node_modules/@storybook/addon-storyshots/dist/require_context.js:102:3)
      at testStorySnapshots (node_modules/@storybook/addon-storyshots/dist/index.js:105:35)
      at Object.<anonymous> (Storyshots.test.js:2:31)

2522 mentions a workaround in the comments.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dnlsandiego picture dnlsandiego  ·  3Comments

xogeny picture xogeny  ·  3Comments

ZigGreen picture ZigGreen  ·  3Comments

zvictor picture zvictor  ·  3Comments

wahengchang picture wahengchang  ·  3Comments