-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: 馃悰 make loader be more aggressive
- Loading branch information
Showing
10 changed files
with
121 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
tests/server/master/loader.fixtures/addDecorator.input.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// @ts-nocheck | ||
import React from 'react'; | ||
import { withCreevey } from 'creevey'; | ||
import { addDecorator } from '@storybook/react'; | ||
import { withA11y } from '@storybook/addon-a11y'; | ||
|
||
import { GlobalStyle } from '../src/components/shared/global'; | ||
|
||
addDecorator(withA11y); | ||
addDecorator(story => ( | ||
<> | ||
<GlobalStyle /> | ||
{story()} | ||
</> | ||
)); | ||
addDecorator(withCreevey()); |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// @ts-nocheck | ||
import { addParameters } from '@storybook/react'; | ||
import { DocsPage } from 'storybook-addon-deps/blocks'; | ||
|
||
addParameters({ | ||
options: { showRoots: true }, | ||
docs: { page: DocsPage }, | ||
}); | ||
addParameters({ creevey: { captureElement: '#test-root' } }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// @ts-nocheck | ||
import { addParameters } from '@storybook/react'; | ||
|
||
|
||
addParameters({}); | ||
|
||
|
||
|
||
addParameters({ creevey: { captureElement: '#test-root' } }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
// @ts-nocheck | ||
import React from 'react'; | ||
import Button from './src/Button'; | ||
import Input from './src/Input'; | ||
|
||
export default { | ||
title: 'Button', | ||
component: Button, | ||
subcomponents: { input: Input }, | ||
}; | ||
|
||
export const Text = () => <Button>Hello Button</Button>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,11 @@ | |
|
||
|
||
|
||
|
||
export default { | ||
title: 'Button' }; | ||
|
||
|
||
|
||
|
||
export const Text = () => {}; |
24 changes: 24 additions & 0 deletions
24
tests/server/master/loader.fixtures/csf-custom-params.input.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// @ts-nocheck | ||
import React from 'react'; | ||
import Button from './src/Button'; | ||
import Input from './src/Input'; | ||
|
||
export default { | ||
title: 'Button', | ||
component: Button, | ||
subcomponents: { input: Input }, | ||
parameters: { | ||
component: Button, | ||
subcomponents: { input: Input }, | ||
creevey: { captureElement: '#root' }, | ||
}, | ||
}; | ||
|
||
export const Text = () => <Button>Hello Button</Button>; | ||
Text.story = { | ||
parameters: { | ||
component: Button, | ||
subcomponents: { input: Input }, | ||
creevey: { captureElement: '#root' }, | ||
}, | ||
}; |
22 changes: 22 additions & 0 deletions
22
tests/server/master/loader.fixtures/csf-custom-params.output.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// @ts-nocheck | ||
|
||
|
||
|
||
|
||
export default { | ||
title: 'Button', | ||
|
||
|
||
parameters: { | ||
|
||
|
||
creevey: { captureElement: '#root' } } }; | ||
|
||
|
||
|
||
export const Text = () => {}; | ||
Text.story = { | ||
parameters: { | ||
|
||
|
||
creevey: { captureElement: '#root' } } }; |