To use the tests, you will need to install Node -- you can do this via the download page or using Homebrew if you are on a Mac.
Note that on Windows, there are some reports that you will need to restart after installing Node.
After Node have been installed, from this directory, run:
npm install
npm start
You can then view the tests in your browser at http://localhost:4444/tests.
When you visit that page, all of the tests should be failing; your job is to
get the tests to pass. To do this, you'll need to refer to the tests in the
files in the tests/
directory, and edit the files in the src/
directory.
Once you update a test, you can reload the test page in the browser to see
whether it worked.
You can also run (most of) the tests on the command line:
npm test
The command line runner is a work in progress; contributions welcome :)
You can also visit this url to develop with live-reload if that's your thing:
http://localhost:4444/webpack-dev-server/tests.
If your tests need data that can be fetched via XHR, stick a .json
file in
the data
directory; you can access it at /data/<filename>.json
.