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.
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.
- A minimal .eslintrc.js config or even better you can create your own
.eslintrc.js
with the exact content of this file - A sample jest.config.js