Skip to content

Latest commit

 

History

History
83 lines (55 loc) · 1.03 KB

_SETUP.md

File metadata and controls

83 lines (55 loc) · 1.03 KB

Setup

At anymock we use npm to execute commands.

If you already have npm installed, do: npm run setup. This will complete all required steps.

That's all.

Setup manually

Setup your local anymock repository

git clone https://github.com/temberature/anymock.git
cd anymock
npm install

To run the entire test suite use

npm test

To run only integration tests use

npm test:integration

or in watch mode

npm test:integration --watch

To run only unit tests use

npm test:unit

or in watch mode

npm test:unit --watch

To update Jest snapshots use

npm test:update-snapshots

To run code formatter (prettier) run

npm pretty

To run all linters use

This performs linting on:

  • eslint (code-lint script)
  • schema (schema-lint script)
  • types (type-lint script)
npm lint

To run only the typechecker use

npm type-lint

or incremental (in watch mode)

npm type-lint --watch