TypeError: Cannot read property 'close' of undefined
bannier opened this issue · 5 comments
bannier commented
running storybook/addon-storyshots@3.3.15 that depends on jest-specific-snapshot I get this weird behavior :
TypeError: Cannot read property 'close' of undefined
> 3 | import initStoryshots from '@storybook/addon-storyshots';
at Object.<anonymous> (node_modules/chalk/index.js:72:74)
at Object.<anonymous> (node_modules/jest-specific-snapshot/dist/index.js:12:21)
at Object.<anonymous> (node_modules/@storybook/addon-storyshots/dist/test-bodies.js:29:1)
at Object.<anonymous> (node_modules/@storybook/addon-storyshots/dist/index.js:18:19)
looks like at line 12 jest-specific-snapshot/dist/index.js is only importing jest-snapshot
var _jestSnapshot = require('jest-snapshot');
Any idea why I get this error ?
I'm using jest-snapshot@22.4.0
igor-dv commented
Do you have a repo where I can reproduce the problem?
bannier commented
Sorry no : this is on a private repo. But I can try to reproduce this in another repo if you think it'll help.
igor-dv commented
Yeah, it will help. I didn't manage to reproduce this with the examples here
igor-dv commented
Please reopen, when you have a reproduction. Thanks.