https://github.com/sinonjs/module-test
https://github.com/sinonjs/module-test
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sinonjs/module-test
- Owner: sinonjs
- Created: 2023-12-27T10:00:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-27T10:01:14.000Z (over 2 years ago)
- Last Synced: 2025-01-01T16:42:54.561Z (over 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sinon module test
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.
## Setup
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:
- [sinon][sinon]
- [@sinonjs/commons][commons]
- [@sinonjs/fake-timers][fake-timers]
- [@sinonjs/nise][nise]
- [@sinonjs/samsam][samsam]
It is also assumed that you've installed their dependencies and run `npm link` in each of them.
### Setting up this repository
```sh
# install all packages and link all sinon packages to local copies
./setup
```
If you want to use continous testing, you should have [`ag`][ag] and [`entr`][entr] installed.
## How to test
You can run the tests in two ways:
```sh
# run the test once
./test.sh
# use run the tests continuously (requires ag and entr)
./run.sh
```
[sinon]: https://github.com/sinonjs/sinon
[commons]: https://github.com/sinonjs/fake-timers
[fake-timers]: https://github.com/sinonjs/fake-timers
[nise]: https://github.com/sinonjs/nise
[samsam]: https://github.com/sinonjs/samsam
[ag]: https://github.com/ggreer/the_silver_searcher
[entr]: https://eradman.com/entrproject/