0.1.1 • Published 4 years ago

@kenoxa/npm-registry-mock v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@kenoxa/npm-registry-mock

Features

  • Mock the NPM Registry for testing

Available Scripts

npm start

Runs the app in the development mode.

npm test

Two sub scripts will came in handy from time to time:

  • npm start test.watch: re-run tests on change
  • npm start test.coverage: creates a coverage report at coverage/lcov-report/index.html

npm run format

Formats all sources using prettier.

Create a release

  1. Update changelog
  2. npm run format
  3. npm test
  4. git commit -a -m "chore: prepare release`
  5. npm version [\ | major | minor | patch] -m "chore: release"
  6. npm run release

Folder Structure

src/

Put all your source code including your test files here. Test files are matched using the following regexp:

  • src/**/__tests__/*.{js,jsx,ts,tsx}: matches every file within a __tests__ directory but not in child directories
  • src/**/*.{spec,test}.{js,jsx,ts,tsx}: matches *.test.js and *.spec.js files; some for the other extensions