@datr.tech/marble-api-model-validator-unit-test-generator
Version:
A Marble unit test generator for Mongoose based model validators (within the associated API packages)
50 lines (31 loc) • 1.12 kB
Markdown
## README: @datr.tech/marble-api-model-validator-unit-test-generator
> A Marble unit test generator for Mongoose based model validators (within the associated API packages)
### Install as dependency
Install from NPM using the following command.
```bash
npm i @datr.tech/@datr.tech/marble-api-model-validator-unit-test-generator
```
### Install locally
Install the package from GitHub using the following commands.
```bash
git clone https://github.com/datr.tech/marble-api-model-validator-unit-test-generator.git
```
Then install the required dependencies
```bash
cd @datr.tech/marble-api-model-validator-unit-test-generator
npm i
```
#### Format
Format code, config files and (when applicable) tests
```bash
npm run format
```
The formatting will be performed by Prettier, and the associated Prettier config can be found [here][./.prettierrc.json].
#### Lint
Lint code, config files and (when applicable) tests
```bash
npm run lint
```
The formatting will be performed by EsLint, and the associated config can be found from the following address [./eslint.config.mjs][./eslint.config.mjs].