diff --git a/examples/angular-cli/jest.config.js b/examples/angular-cli/jest.config.js index 5a1d1f9dfdd6..aef6a6dd8a31 100644 --- a/examples/angular-cli/jest.config.js +++ b/examples/angular-cli/jest.config.js @@ -8,6 +8,7 @@ module.exports = { }, roots: [__dirname], transform: { + '^.+\\.stories\\.[jt]sx?$': '@storybook/addon-storyshots/injectFileName', '^.+\\.jsx?$': '/scripts/babel-jest.js', '^.+[/\\\\].storybook[/\\\\]config\\.ts$': '/scripts/jest-ts-babel.js', '^.+\\.html$': '/node_modules/jest-preset-angular/preprocessor.js', diff --git a/examples/angular-cli/src/stories/__snapshots__/addon-actions.stories.storyshot b/examples/angular-cli/src/stories/__snapshots__/addon-actions.stories.storyshot index aceb663dd9cd..15bf0a822832 100644 --- a/examples/angular-cli/src/stories/__snapshots__/addon-actions.stories.storyshot +++ b/examples/angular-cli/src/stories/__snapshots__/addon-actions.stories.storyshot @@ -1,16 +1,16 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Storyshots Addon|Actions Action and method 1`] = ` +exports[`Storyshots Addon|Actions Action And Method 1`] = ` @@ -18,17 +18,17 @@ exports[`Storyshots Addon|Actions Action and method 1`] = ` `; -exports[`Storyshots Addon|Actions Action only 1`] = ` +exports[`Storyshots Addon|Actions Action Only 1`] = ` diff --git a/examples/angular-cli/src/stories/__snapshots__/addon-background.stories.storyshot b/examples/angular-cli/src/stories/__snapshots__/addon-background.stories.storyshot index 2e50937f7f3f..f9548c66262a 100644 --- a/examples/angular-cli/src/stories/__snapshots__/addon-background.stories.storyshot +++ b/examples/angular-cli/src/stories/__snapshots__/addon-background.stories.storyshot @@ -72,11 +72,11 @@ exports[`Storyshots Addon|Background background template 1`] = ` > diff --git a/examples/angular-cli/src/stories/__snapshots__/addon-centered.stories.storyshot b/examples/angular-cli/src/stories/__snapshots__/addon-centered.stories.storyshot index 518603dd9fd3..a567e0501801 100644 --- a/examples/angular-cli/src/stories/__snapshots__/addon-centered.stories.storyshot +++ b/examples/angular-cli/src/stories/__snapshots__/addon-centered.stories.storyshot @@ -92,11 +92,11 @@ exports[`Storyshots Addon|Centered centered template 1`] = ` style="margin: auto; max-height: 100%;" > diff --git a/examples/angular-cli/src/stories/__snapshots__/addon-jest.stories.storyshot b/examples/angular-cli/src/stories/__snapshots__/addon-jest.stories.storyshot index 2b1132e5688a..1c3a8b3f4756 100644 --- a/examples/angular-cli/src/stories/__snapshots__/addon-jest.stories.storyshot +++ b/examples/angular-cli/src/stories/__snapshots__/addon-jest.stories.storyshot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Storyshots Addon|Jest app.component with jest tests 1`] = ` +exports[`Storyshots Addon|Jest App Component With Jest Tests 1`] = ` `; -exports[`Storyshots Addon|Knobs XSS safety 1`] = ` +exports[`Storyshots Addon|Knobs Xss Safety 1`] = ` diff --git a/examples/angular-cli/src/stories/__snapshots__/addon-notes.stories.storyshot b/examples/angular-cli/src/stories/__snapshots__/addon-notes.stories.storyshot index ce3742208373..f8309318557d 100644 --- a/examples/angular-cli/src/stories/__snapshots__/addon-notes.stories.storyshot +++ b/examples/angular-cli/src/stories/__snapshots__/addon-notes.stories.storyshot @@ -1,16 +1,16 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Storyshots Addon|Notes Note with HTML 1`] = ` +exports[`Storyshots Addon|Notes Note With Html 1`] = ` @@ -18,17 +18,17 @@ exports[`Storyshots Addon|Notes Note with HTML 1`] = ` `; -exports[`Storyshots Addon|Notes Simple note 1`] = ` +exports[`Storyshots Addon|Notes Simple Note 1`] = ` diff --git a/examples/angular-cli/src/stories/__snapshots__/app.component.stories.storyshot b/examples/angular-cli/src/stories/__snapshots__/app.component.stories.storyshot index 3425505a2436..812919e5188b 100644 --- a/examples/angular-cli/src/stories/__snapshots__/app.component.stories.storyshot +++ b/examples/angular-cli/src/stories/__snapshots__/app.component.stories.storyshot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Storyshots App Component Component with separate template 1`] = ` +exports[`Storyshots App Component Component With Separate Template 1`] = ` diff --git a/examples/angular-cli/src/stories/__snapshots__/custom-pipes.stories.storyshot b/examples/angular-cli/src/stories/__snapshots__/custom-pipes.stories.storyshot index b2a69015ad53..ac80b8afb219 100644 --- a/examples/angular-cli/src/stories/__snapshots__/custom-pipes.stories.storyshot +++ b/examples/angular-cli/src/stories/__snapshots__/custom-pipes.stories.storyshot @@ -14,7 +14,7 @@ exports[`Storyshots Custom|Pipes Simple 1`] = ` `; -exports[`Storyshots Custom|Pipes With Knobs 1`] = ` +exports[`Storyshots Custom|Pipes With Knobs Story 1`] = ` `; -exports[`Storyshots Custom|Providers With knobs 1`] = ` +exports[`Storyshots Custom|Providers With Knobs Story 1`] = ` @@ -21,7 +21,7 @@ exports[`Storyshots Custom|Style Default 1`] = ` `; -exports[`Storyshots Custom|Style With Knobs 1`] = ` +exports[`Storyshots Custom|Style With Knobs Story 1`] = ` diff --git a/examples/angular-cli/src/stories/__snapshots__/index.stories.storyshot b/examples/angular-cli/src/stories/__snapshots__/index.stories.storyshot index 6ffc693b1131..d597059e64d0 100644 --- a/examples/angular-cli/src/stories/__snapshots__/index.stories.storyshot +++ b/examples/angular-cli/src/stories/__snapshots__/index.stories.storyshot @@ -8,11 +8,11 @@ exports[`Storyshots Button with some emoji 1`] = ` > @@ -29,11 +29,11 @@ exports[`Storyshots Button with text 1`] = ` > @@ -50,47 +50,47 @@ exports[`Storyshots Welcome to Storybook 1`] = ` >

Welcome to storybook

This is a UI component dev environment for your app.

We've added some basic stories inside the src/stories directory.
A story is a single state of one or more UI components. You can have as many stories as you want.
(Basically a story is like a visual test case.)

See these sample @@ -98,7 +98,7 @@ exports[`Storyshots Welcome to Storybook 1`] = ` for a component called Button @@ -106,26 +106,26 @@ exports[`Storyshots Welcome to Storybook 1`] = ` .

Just like that, you can add your own components as stories.
You can also edit those components and see changes right away.
(Try editing the Button stories located at src/stories/index.js @@ -133,15 +133,15 @@ exports[`Storyshots Welcome to Storybook 1`] = ` .)

Usually we create stories with smaller UI components in the app.
Have a look at the

NOTE:
Have a look at the .storybook/webpack.config.js diff --git a/examples/angular-cli/src/stories/component-with-di/__snapshots__/di.component.stories.storyshot b/examples/angular-cli/src/stories/component-with-di/__snapshots__/di.component.stories.storyshot index bb1e628d5f83..e5a7203f3a78 100644 --- a/examples/angular-cli/src/stories/component-with-di/__snapshots__/di.component.stories.storyshot +++ b/examples/angular-cli/src/stories/component-with-di/__snapshots__/di.component.stories.storyshot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Storyshots Custom|Dependencies inputs and inject dependencies 1`] = ` +exports[`Storyshots Custom|Dependencies Inputs And Inject Dependencies 1`] = ` `; -exports[`Storyshots Custom|Dependencies inputs and inject dependencies with knobs 1`] = ` +exports[`Storyshots Custom|Dependencies Inputs And Inject Dependencies With Knobs 1`] = ` `; -exports[`Storyshots Custom|Inheritance icon button 1`] = ` +exports[`Storyshots Custom|Inheritance Icon Button 1`] = ` My Chíp

✕ @@ -38,21 +38,21 @@ exports[`Storyshots Custom|Feature Module as Context with forRoot Component with target={[Function ViewContainerRef_]} > My Chíp
✕ @@ -69,28 +69,28 @@ exports[`Storyshots Custom|Feature Module as Context with forRoot Component with target={[Function ViewContainerRef_]} > Chíp 1
✕ @@ -98,24 +98,24 @@ exports[`Storyshots Custom|Feature Module as Context with forRoot Component with
Chíp 2
✕ @@ -124,7 +124,7 @@ exports[`Storyshots Custom|Feature Module as Context with forRoot Component with
Remove All diff --git a/examples/angular-cli/src/stories/module-context/__snapshots__/module-context.stories.storyshot b/examples/angular-cli/src/stories/module-context/__snapshots__/module-context.stories.storyshot index d61ddd41ba4c..838d283d5c21 100644 --- a/examples/angular-cli/src/stories/module-context/__snapshots__/module-context.stories.storyshot +++ b/examples/angular-cli/src/stories/module-context/__snapshots__/module-context.stories.storyshot @@ -7,21 +7,21 @@ exports[`Storyshots Custom|Feature Module as Context Component with default prov target={[Function ViewContainerRef_]} > My Chíp
✕ @@ -38,21 +38,21 @@ exports[`Storyshots Custom|Feature Module as Context Component with overridden p target={[Function ViewContainerRef_]} > My Chíp
✕ @@ -69,28 +69,28 @@ exports[`Storyshots Custom|Feature Module as Context Component with self and dep target={[Function ViewContainerRef_]} > Chíp 1
✕ @@ -98,24 +98,24 @@ exports[`Storyshots Custom|Feature Module as Context Component with self and dep
Chíp 2
✕ @@ -124,7 +124,7 @@ exports[`Storyshots Custom|Feature Module as Context Component with self and dep
Remove All diff --git a/examples/angular-cli/src/stories/on-push/__snapshots__/on-push.stories.storyshot b/examples/angular-cli/src/stories/on-push/__snapshots__/on-push.stories.storyshot index e449b7c64137..16233edd0907 100644 --- a/examples/angular-cli/src/stories/on-push/__snapshots__/on-push.stories.storyshot +++ b/examples/angular-cli/src/stories/on-push/__snapshots__/on-push.stories.storyshot @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Storyshots Core|OnPush Class-specified component with OnPush and Knobs 1`] = ` +exports[`Storyshots Core|OnPush Class Specified Component With On Push And Knobs 1`] = `