Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theme switch doesn't work and test's fail #3

Open
ibayer opened this issue May 8, 2019 · 0 comments
Open

Theme switch doesn't work and test's fail #3

ibayer opened this issue May 8, 2019 · 0 comments

Comments

@ibayer
Copy link

ibayer commented May 8, 2019

Thanks for the example!
Will trying it out (npm -version 6.4.1)

git clone https://github.com/react-theming/create-material-ui-app.git
cd create-material-ui-app
npm install
npm run storybook

I ran into two issues:

  1. The rendered component don't change if I switch between light and dark theme.

  2. The test fails

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

    Cannot find module '@storybook/addon-storyshots' from 'Storyshots.test.js'

    > 1 | const initStoryshots = require('@storybook/addon-storyshots').default
        |                        ^
      2 | initStoryshots()
      3 | 

      at Resolver.resolveModule (node_modules/jest-runtime/node_modules/jest-resolve/build/index.js:230:17)
      at Object.require (src/Storyshots.test.js:1:24)

 PASS  src/App.test.js

Test Suites: 1 failed, 1 passed, 2 total
Tests:       1 passed, 1 total
Snapshots:   0 total
Time:        1.167s
Ran all test suites.

Watch Usage: Press w to show more.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant