/ildella-test-commons

jest preset + eslint configs + multi projects tests setup and common code for tests

Primary LanguageJavaScriptMIT LicenseMIT

README

License Version Build

DEPRACETED. Please use the drop-in replacement: moar-js-dev

In this project I have a few key objectives:

  • A single dependency I can bring in a new project that will import all I need for linting and testing code.
  • A project structure to mix up fast unit and integration and functional tests that can target different technologies and working niceley together, in a single project.
  • Common code for testing stuff, like an embedded http server with its client, a properly configured http-json client and more.

The linting part is mostly done in a separate effort that can be used as standalone eslint-config.

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

Single Dependency

yarn add ildella-test-commons
# Or...
npm install ildella-test-commons

You can use this template project straight away.

If you do not want to use my template project, here's how to configure yours from scratch.