[ ] Create a test file(s) ([..].test.js) for a file(s) containing the following functions:
[ ] a function for editing the task description.
[ ] a function for updating an item's 'completed' status.
[ ] the "Clear all completed" function.
[ ] Use the mock storage object you have created in Part 1 of this project to mock the localStorage updates.
[ ] Mock the HTML elements to test DOM manipulation functions.
[ ] Make sure you group your tests using the description() method.
[ ] You need to use pair-programming for this project. We will check to see if both partners submitted code by looking at the commit history for each project. Therefore you need to select one of the repos in your pair-programming group in which you will implement the above features.
Optional requirement
[ ] Add a --coverage flag to your test script in package.json. That way you will see the percentage coverage of your application code every time you run a test:
...
"scripts": {
"test": "jest --coverage",
...
}
When writing tests the closer you get to 100% coverage the better.
Happy Review :)
👋 Micronaut Reviewer
Testing To Do list: part 2
Today, we are working on the project first step :
Project requirements
[..].test.js
) for a file(s) containing the following functions:description()
method.Optional requirement
--coverage
flag to your test script in package.json. That way you will see the percentage coverage of your application code every time you run a test: