https://github.com/lionello/inlinemochatest
Inline mocha tests template
https://github.com/lionello/inlinemochatest
Last synced: 2 months ago
JSON representation
Inline mocha tests template
- Host: GitHub
- URL: https://github.com/lionello/inlinemochatest
- Owner: lionello
- Created: 2019-04-01T09:48:31.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-01T09:52:37.000Z (about 6 years ago)
- Last Synced: 2025-02-05T23:27:43.185Z (4 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# inlinemochatest
Inline Mocha tests template## Intro
This project shows how you can put your Mocha unittests side-by-side in the files with the actual implementations. It basically boils down to prefixing any `describe` statement with `global.describe &&` to ensure it's skipped when the file is loaded outside of Mocha by `node`.## Development
```sh
direnv allow
pnpm i
```## Run tests
```
pnpm test
```