2.3.2 • Published 1 year ago

moar-js-dev v2.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Moar JS Dev. Yes, the one project to bind them all together.

License Version Build

This project has the minimal objective to provide:

  • A single dependency with all I need for linting and testing code.
  • A structure for tests to mix up unit, integration and functional that can target different technologies and working niceley together, in a single project, with indipendent setup and timeout.
  • Common code for testing stuff

    • Initially only a simple testing module for HTTP APIs.

The linting part brings together 3 different configurations:

All of this works for Node.js projects, in pure JavaScript.

Setup a new project with moar-js-dev

First add it as development dependency

yarn add -D moar-js-dev
# Or...
npm install -D moar-js-dev

Then just copy and paste a couple files to have a new projet up and running

const {jest: {preset}} = require('moar-js-dev')

module.exports = {
  ...preset(),
  projects: [
    '<rootDir>/tests/unit',
    '<rootDir>/tests/integration',
  ],
}

That's it.