PixelOven.Test
Overview
NOTICE: This feature will be removed from the core cli and become an addon in a future update.
Test is a simple wrapper for testing JavaScript applications. It currently acts as proxy for the Jest compiler and comes with a dependecies to make it more compatible with TypeScript.
Jest
It is important to note that currently this feature expects a jest.json file to be present at the root of the package to configure the compiler.
For reference on all the available configurations please review the official documentation for Jest.
Setup
First be sure to create a jest.json file at the root of the project or in other words adjacent to the package.json.
Options
For reference on all the available options please review the official documentation for Jest.
Usage
Once this has been confirmed all we have to do is run the following.
or perhaps as part of a CI workflow:
Jest has an extensive CLI and so it is recommended to review their documentation for all the available options. Proper configuration through jest.json is also highly recommended.