Skip to content

mguterl/react-jest-dom-question

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

An exploratory exercise to learn more about testing React.js components with Jest.

This is a simple React.js component that truncates content to the specified height and decorates it with "Read more" and "Read less" functionality. Instructions for seeing a demo are below.

There is a test failure that depends on checking the height of an HTML element. I'm not sure how to fix this but am open to suggestions.

Install Dependencies

npm install

Run Tests

npm test

View Demo

npm start
open http://localhost:8081

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published