This job will run a predifined `test` command specified in the scripts section of the `package.json` configuration file
## How to use it
1. Make sure that your project has `package.json` file which contains the required `test` command in the `scripts` object.
2. Copy the job URL located in the `Install` part of the right panel and add it inside the `include` list of your `.gitlab-ci.yml` file (see the [quick setup](/use-the-hub/#quick-setup)). You can specify [a fixed version](#changelog) instead of `latest`.
3. If you need to customize the job (stage, variables, ...) 👉 check the [jobs
customization](/use-the-hub/#jobs-customization)
4. Well done, your job is ready to work ! 😀
### Variables
!!! note
All paths defined in variables are relative and start from the root of your
repository.
| Name | Description | Default |
| ---- | ----------- | ------- |
| `PROJECT_ROOT` | Path to the directory containing `package.json` | `.` |
| `IMAGE_TAG` | The default tag for the docker image | `18-buster` |
### Author
This resource is an **[official job](https://docs.r2devops.io/faq-labels/)** added in [**R2Devops repository**](https://gitlab.com/r2devops/hub) by [@DjNaGuRo](https://gitlab.com/DjNaGuRo)