Skip to content
New issue

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

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

Already on GitHub? # to your account

Usage with Mocha #34

Open
gregorskii opened this issue Mar 15, 2017 · 1 comment
Open

Usage with Mocha #34

gregorskii opened this issue Mar 15, 2017 · 1 comment

Comments

@gregorskii
Copy link

Hi there,

I am trying to make this work with Mocha, Enzyme, and Chai-Jasmine.

I think I have the facades configured correctly but when I import my Mocha test file it does not hook into the specs function on Storybook.

The section on Mocha says you can import tests directly from test files, but it switches back to talking about Jest. Is this possible with Mocha tests?

I have a boilerplate project where I am debugging it here:

https://github.com/gregorskii/redux-starter

Where I have made the necessary configs files:

.storybook/facade.js:

https://github.com/gregorskii/redux-starter/blob/master/.storybook/facade.js

Mocha Config Helper:

https://github.com/gregorskii/redux-starter/blob/master/test/unit/spec/helpers/storybook.js

Storybook File:

https://github.com/gregorskii/redux-starter/blob/master/src/components/welcome/welcome-storybook.jsx

Do you think you can provide some guidance on how to get this working/ if this config should/will work?

Thanks!

@gregorskii
Copy link
Author

Hey, did you have a chance to review this? :)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant