Skip to content

BootcampReact - PR 2: Mini-Challenge 2#3

Open
EduGlzC wants to merge 1 commit into
Challenge-1from
Challenge-2B
Open

BootcampReact - PR 2: Mini-Challenge 2#3
EduGlzC wants to merge 1 commit into
Challenge-1from
Challenge-2B

Conversation

@EduGlzC
Copy link
Copy Markdown
Owner

@EduGlzC EduGlzC commented Apr 7, 2021

  1. Extract logic of a sub-routine into a separate file and test it out
  2. Run test coverage and save results into a .txt file at ./ - root level
  3. Remove files not needed

function greetings() {
import Hello from '../../components/HomeHello';
/*
const greetings = (hour) => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Please, remove commented out code.

@@ -0,0 +1,45 @@
import React from 'react';
import { render, unmountComponentAtNode } from 'react-dom';
import { act } from 'react-dom/test-utils';
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I encourage you to use React Testing Library, instead.

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