• To have some of your "node_modules" files transformed, you can specify a custom "
transformIgnorePatterns
(ts|tsx)$': 'ts-jest',
transformIgnorePatterns
: ['<rootDir>/node_modules/(?!
我所拥有的根据中的快照测试部分,您唯一需要做的就是创建一个具有以下内容的storybook.test.js文件:import initStoryshots from '@storybook/addon-storyshots';在此之后,所有操作都应该按照预期进行,但是控制台会抛出以下错误:
Jest en