apidoc-mock

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

build:deps

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

docker:build

docker build -t apidoc-mock-test .

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

docker:stop

docker stop mock-api-test

release

changelog

start

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

start:dev

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

test

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

test:ci

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

test:clearCache

jest --clearCache

test:coverage

run-s test:ci test:coverageSummary

test:coverageSummary

node ./scripts/actions.coverage.js

test:deps

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

test:dev

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

test:integration

jest --roots=./tests

test:integration-dev

jest --roots=./tests --watchAll

test:lint

eslint ./src ./bin ./data

test:local

jest --watch

test:spell-docs

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

test:spell

cspell './src/**/*.js' './tests/**/*.js' --config ./cspell.config.json
npm i apidoc-mock

Metadata

  • MIT
  • >=18.0.0
  • cdcabrera
  • released 10/15/2024

Downloads

Maintainers