May 2019
Intermediate to advanced
496 pages
10h 38m
English
We'll add our new component into the same file we've been using already because there's not much code in there so far.
In test/Appointment.test.js, create a new describe block under the first one, with a single test, as follows. This test checks that we render a div with a particular ID. That's important in this case because we load a CSS file that looks for this element. The expectations in this test use the DOM method, querySelector. This searches ...
Read now
Unlock full access