An open API service indexing awesome lists of open source software.

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

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
```