Skip to content

Conversation

@thehexatown-zaryab
Copy link
Collaborator

No description provided.

@thehexatown-zaryab
Copy link
Collaborator Author

Copy link
Owner

@tolicodes tolicodes left a comment

Choose a reason for hiding this comment

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

good job! Let's merge and pair program next week on refactoring.

test("Carousel", () => {
expect(() => {
render(<Carousel />);
}).not.toThrowError();
Copy link
Owner

Choose a reason for hiding this comment

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

Add a snapshot test

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have added content based test, but using testing-library, it is a little hard to do snapshot test, because the class name is randomly generated when style-components are being used, because I'm unaware of what they would be. I believe storybook-testing might be better and might provide us with snapshot testing for our scenario, Please advice.

interface TimelineProps {
timeline: ITimeline;
}
const Timeline: React.FC<TimelineProps> = ({ timeline }) => {
Copy link
Owner

Choose a reason for hiding this comment

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

We can merge for now, but let's pair program next week on optimizing this. This is a very important component

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure

const Resume = ({}: ResumeProps) => {
return (
<SectionWrapper title="Resume">
{/* Carousel for companies */}
Copy link
Owner

Choose a reason for hiding this comment

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

Why commented?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I began by laying the base for carousel but shifted to Timeline, because that had higher priority. I will be coming back to this one.

@tolicodes
Copy link
Owner

tolicodes commented Jan 19, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants