@eiel/storyshot-jest-27
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

@eiel/storyshot-jest-27

jest 27 transformer for storyshot

Motivation

don't work @storybook/addon-storyshots in Jest version 27 provide unoffitial package for storyshots in Jest v27

Install

npm install -D @eiel/storyshot-jest-27

update jest.config.js for storyshot

 transform: {
-  '^.+\\.stories\\.tsx?$': '@storybook/addon-storyshots/injectFileName',
+  '^.+\\.stories\\.tsx?$': '@eiel/storyshot-jest-27',
   '^.+\\.[jt]sx?$': 'babel-jest',
 },

Description

Jest transformer API break change in Jest v27. see https://jestjs.io/docs/code-transformation Don,t fix still offitial Jest transform by storybook. So, I wrote alternate transformer for storyshot in Jest v27.

I will archive this repository when official support Jest v27 release.

Package Sidebar

Install

npm i @eiel/storyshot-jest-27

Weekly Downloads

1

Version

0.0.4

License

MIT

Unpacked Size

9.92 kB

Total Files

7

Last publish

Collaborators

  • eiel