This repository contains a test harness for verifying that all the Sinon packages can be used in both Commonjs and ESM projects.
This audience for this repository is the Sinon maintainers.
If you're using nvm
, make sure you're using the same version of node
and npm
in all packages, or the resolution of npm link
will not work the way you expect.
It is assumed that you have local checkouts of the following packages:
It is also assumed that you've installed their dependencies and run npm link
in each of them.
# install all packages and link all sinon packages to local copies
./setup
If you want to use continous testing, you should have ag
and entr
installed.
You can run the tests in two ways:
# run the test once
./test.sh
# use run the tests continuously (requires ag and entr)
./run.sh