Skip to content

jdegand/testing-input-output

Repository files navigation

Testing Input Output

Angular Challenges #19 Input / Output Testing

Built With

Directions

We have a small counter application that increment or decrement a number.

The goal is to test CounterComponent with Testing library and Cypress.

Thoughts

  • I tried to use componentProperties for the output test but I don't think it is possible.
  • You get errors Property 'toHaveTextContent' does not exist on type 'Assertion' etc after you write cypress tests.
  • Both tests still work -> seems like vscode gets confused ?

How to Use

git clone https://github.com/jdegand/testing-input-output.git

# cd into the directory
npm install

# Jest 

npm test

# Jest with Coverage

npm run test:coverage

# Cypress

npm run cypress:open

Useful Resources

About

Angular Challenges #19 Input / Output Testing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published