testing-javascript-applications
testing-javascript-applications copied to clipboard
:book: The repository which accompanies the book Testing JavaScript Applications.
I get a bunch of error messages when running the tests on page 259. I tried to do the following: ``` import React from "react"; import {App} from "./App.jsx"; import...
Closing the db connection after the 'expect' function will cause the program not terminating if the test failed
There are missing async/await in addItem since add fetch to this function. Thus missing async/await in handleAddItem function. and missing async/await logical in three test file. After changing tests in...
I think there maybe some problem after you add fetch in addItem function in inventoryController.js for tests involving HTTP requests. I got the error that the nock mock is not...
Fixing the message of the second test: from: "The addToCart function can add an item to the cart" to: "The removeFromCart function can remove an item from the cart"
In the section 6.4.2 of the book it is written: > When using detachPopstateHandlers in main.test.js, you must be careful when detaching all of the window’s listeners after each test,...