If you're running your tests in the browser bundled with webpack (or similar)
DOM Testing Library should work out of the box for you. However, most
DOM Testing Library are using it with
the Jest testing framework with the
(which is the default configuration with Jest).
Using Without Jest
First, install jsdom and global-jsdom.
With mocha, the test command would look something like this: