First, get a copy of the git repo by running:
git clone git://github.com/jquery/jquery-simulate.git
Enter the directory and install the node dependencies:
cd jquery-simulate && npm install
Make sure you have grunt
installed by testing:
grunt -version
If not, run:
npm install -g grunt
To run tests locally, run grunt
, and this will run the tests in PhantomJS.
You can also run the tests in a browser by navigating to the test/
directory, but first run grunt
to install submodules.