2.3.2 • Published 1 year ago
moar-js-dev v2.3.2
Moar JS Dev. Yes, the one project to bind them all together.
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:
- A basic config
- A stricter config with functional programming specifics rules
- A config for tests
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
- A sample .eslintrc.js
- And copy this minimal
jest.config.js
const {jest: {preset}} = require('moar-js-dev')
module.exports = {
...preset(),
projects: [
'<rootDir>/tests/unit',
'<rootDir>/tests/integration',
],
}
That's it.