apidoc-mock

v5.0.4
Create a mock server from apiDoc comments.
api apidoc apidoc mock cli comment mock server

test

run-s -l test:lint test:spell* test:ci

start

./bin/cli.js -w ./data

release

changelog

test:ci

export CI=true; jest --collectCoverage --coverageReporters="lcov" --coverageReporters="json-summary"

test:dev

rm -rf ./.docs; eslint ./src; run-s test:spell test:local

start:dev

nodemon --watch data --watch src './bin/cli.js -w ./data'

test:deps

rm -rf ./.docs; run-s test

test:lint

eslint ./src ./bin ./data

build:deps

bash ./scripts/dependencies.sh --doctor -u --doctorTest "npm run test:deps" --reject "apidoc"

docker:run

docker stop mock-api-test; docker run -i --rm -p 5000:8000 -v "$(pwd)/data:/app/data" --name mock-api-test apidoc-mock-test

test:local

jest --watch

test:spell

cspell './src/**/*.js' './tests/**/*.js' --config ./cspell.config.json

docker:stop

docker stop mock-api-test

docker:build

docker build -t apidoc-mock-test .

test:coverage

run-s test:ci test:coverageSummary

test:clearCache

jest --clearCache

test:spell-docs

cspell ./README.md ./CONTRIBUTING.md --config ./cspell.config.json

test:integration

jest --roots=./tests

test:coverageSummary

node ./scripts/actions.coverage.js

test:integration-dev

jest --roots=./tests --watchAll

Metadata

  • MIT
  • >=18.0.0
  • cdcabrera
  • released 9/27/2024

Downloads

Maintainers