Skip to content

Conversation

@j-polanco
Copy link

Changes performed:

  • add testing files
  • update package json to add test:coveraje script

Questions on challenge 2:

Using create-react-app, what do we need to set up for testing?

using create-react-app includes jest to testing

What components are worth to test in your development?

the components that programmer create that includes business logic

Can you apply TDD once you already created components?

it is better to using TDD at the beginning of development or along with it, at the end could be applied but maybe you will find corner cases and you will need spend extra time covering

Screen Shot 2021-02-20 at 9 08 56

Jorge Polanco added 9 commits February 19, 2021 22:39
- Button
- emoji :D
- add GlobalStyle to change from a button action
- add mock data
- delete missing css file
- fix index exporting name
- add placeholder to search button
- delete console.table
- add key for card list

const intervalId = setInterval(rotateBackground, 3000);
body.addEventListener('click', rotateBackground);
const GlobalStyles = createGlobalStyle`body{

Choose a reason for hiding this comment

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

Nice use of the APIs!


function Card({ title, description, image, width, height }) {
return (
<div>

Choose a reason for hiding this comment

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

This div is unnecessary. It'd be good to take it out to reduce items in the tree.

return (
<div>
<Container>
<center>

Choose a reason for hiding this comment

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

This is deprecated: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/center

I'd recommend to just style the container to have centered text instead of this approach.

Copy link

@guillermo-rebolledo guillermo-rebolledo left a comment

Choose a reason for hiding this comment

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

Looking good! I left some comments in the code.

Also, I think the styles are still missing some adjustments:
image

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.

2 participants