Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 664 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 664 Bytes

Skeleton

This is a skeleton of a nodejs project with:

  • Babel 7.x
  • Mocha 8.x
  • Chai 4.x
  • Eslint (with enspirit's config)

Commands

Run the app:

Command: npm start

Run the tests:

Command: npm test

Run the tests (+ watch for file changes & rerun):

Command: npm run test:watch

A report will be generated in tests/test-results.xml. This file is compatible with jenkins' junit plugin.

Run the tests (+ output coverage report):

Command: npm run test:coverage

The coverage report will be generated in the folder coverage/.

Run the linter:

Command: npm run lint

Run the linter (and fix errors):

Command: npm run lint:fix