storybook-addon-specifications
storybook-addon-specifications copied to clipboard
:book: Write tests next to your stories and display their results inside storybook interface
Code to resolve https://github.com/mthuret/storybook-addon-specifications/issues/105 For the moment the change only applies to `it`, though Jest/Mocha allows it on the before/after hooks too, so that might be some future work. The...
Both Jest and Mocha offer the same Promise-based asynchronous interface: https://jestjs.io/docs/en/tutorial-async // The assertion for a promise must be returned. it('works with promises', () => { expect.assertions(1); return user.getUserName(4).then(data =>...
We are using TDD-style for all our unit tests and wonder if it is possible to integrate these tests. Things work well with BDD-style and it would be awesome if...
The docs are currently written for someone familiar with jest mocha and Enzyme. 1. Perhaps add at the beginning: > `Specs` is an addon to `Storybook`. > `Storybook` allows the...
Adds the ability to do nested describes (at least for mocha)
is it `.storybook/__mocks__/facade.js` or `.storybook/facade.js` or both? import { storiesOf } from '@kadira/storybook' < --- this is the depreciated version? new version should be just `@storybook` Should this add snapshot...
Hello! I would love to be able to use this with create-react-native-app. At present I've been able to use basic `expect`, `describe`, `it`, etc. functionality but anything with `enzyme` will...
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...
After spending a bunch of time solving the initial setup with addons.js, webpack.config.js in .storybook, json in package.json so enzyme would work ... Here is the index.js in stories/ i've...
I've extracted my tests into a separate file using this method: https://github.com/mthuret/storybook-addon-specifications/issues/17 /.storybook/config.js ```js import './test-register' ``` /.storybook/test-register.js ```js const { after: afterAll, before: beforeAll, afterEach, beforeEach, it, specs, describe...