20 Commits

Author SHA1 Message Date
Norbert de Langen
aafa2126a4
auto fix eslint isseus 2020-12-03 17:04:00 +01:00
Josh Soref
7fe8e014bf spelling: store
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2020-09-29 09:42:31 -04:00
Michael Shilman
dfc86f6e99 Source-loader: Fix .add detection 2020-08-12 16:26:54 +08:00
Michael Shilman
b4deb2422a Source-loader: Expand X.bind({}) stories in CSF 2020-07-28 18:38:54 +08:00
Michael Shilman
ee45f72e3f Source-loader: Inject source snippets as story parameters 2020-07-28 15:04:31 +08:00
Norbert de Langen
341fc2d90d
FIX linting 2020-03-27 20:04:50 +01:00
David Golightly
2fe47b63fa implement support for jsx/tsx preview files 2020-02-12 13:41:28 -08:00
Michael Shilman
971809db71 Source-loader: Handle includeStories/excludeStories in CSF 2019-12-09 16:45:55 +08:00
Shota Fuji
d9fad400a1
Source-loader: Support function declaration exports
Added support for named exports with function declaration in
source-loader, in order to fix that the story's source code doesn't show
up in Docs mode's code preview.

The changes in generate-helpers.js is necessary because we can't wrap
named export functions:

```
export function foo() {}

// turns into this if we just wrapped it

export wrapper(function foo() {}) // syntax error!
```
2019-12-07 11:43:45 +00:00
Michael Shilman
8ca6bc86f8 Official-storybook: Clean up ForwardRef/Memo stories 2019-10-20 19:34:17 +08:00
Adolfo Panizo
e878516e65 Add unit test for TS - CSF source loader 2019-10-17 11:37:25 +02:00
Steven Em
34b67b06cd Add unit test for flow parser in StorySource 2018-12-13 21:02:52 -08:00
igor-dv
a3411d582f Use prettier parsers to parse ast for js and ts. 2018-03-21 17:41:54 +02:00
igor
d781fbd5aa Make "prettier" and "uglyComments" configurable. 2018-02-20 15:03:47 +02:00
igor
0ee33627da Remove usage of "line-column" package + Add ugly comments removal 2018-02-20 12:27:08 +02:00
igor
f9e6bdc9c2 Add acorn-es7 plugin to parse decorators 2018-02-17 16:41:33 +02:00
igor
e940e88214 Change loader to parse the source with acorn and estraverse 2018-02-01 18:57:47 +02:00
Dan Green
f3d0827695 Add support for markdown to jest, vue, react native, and angular 2017-11-13 23:06:01 -05:00
Norbert de Langen
341cccad75 REMOVE mock-fs and replace it with jest.mock() 2017-09-06 00:39:33 +02:00
Aaron Mc Adam
9986d94e63 chore(tests): migrate to Jest
So far, we've set up the tools and have one failing test inside
storyshots.
2017-04-09 18:39:35 +01:00