Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Remove cra-kitchen-sink example #19179

Merged
merged 2 commits into from
Sep 14, 2022

Conversation

tmeasday
Copy link
Member

This storybook seemed to mainly just have some react rendering testing stories, which were either already created or not actually useful at all (we never looked at them, AFAIK).

title: 'Lifecycle',
};

export const Logging = () => <LifecycleLogger />;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You needed to check the browser console to see these, and half the methods weren't called anyway. Not sure there was a lot of benefit. If we see problems with react lifecycle, let's create a targetted story with a play() function to verify things work right.

component: FastRefreshExample,
};

export const Default = () => <FastRefreshExample />;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've no idea what this tested, the component is really generic.

let count = 0;
const increment = () => {
count += 1;
forceReRender();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have a story that triggers this event and verifies it.

};

export const Story1 = () => <Button>Hello Button</Button>;
Story1.storyName = 'with text';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a UI unit test style story, 🤷

@tmeasday tmeasday added the maintenance User-facing maintenance tasks label Sep 14, 2022
@ndelangen ndelangen merged commit 8def4a4 into next Sep 14, 2022
@ndelangen ndelangen deleted the tom/sb-701-migrate-stories-and-delete-cra-ts branch September 14, 2022 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance User-facing maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants