@backtrack/preset-jest

0.15.0 • Public • Published

@backtrack/preset-jest

npm Linux Build Status Windows Build Status Code Coverage

About

backtrack preset that adds Jest to your project.

Features

Installation

npm install --save-dev @backtrack/preset-jest

Usage

// backtrack.config.js

'use strict';

module.exports = {
	presets: ['@backtrack/jest'],
};

Options

// backtrack.config.js

'use strict';

module.exports = {
	presets: [
		[
			'@backtrack/jest',
			{
				/**
				 * Disable testing on Windows
				 *
				 * module default: true
				 * app default: false
				 */
				windows: false,

				/**
				 * Disable settings unnecessary in applications
				 *
				 * default: false
				 */
				isApp: true,

				/**
				 * prepublishOnly testing hook
				 *
				 * module default: true
				 * app default: false
				 */
				prepublishOnly: false,
			},
		],
	],
};

/@backtrack/preset-jest/

    Package Sidebar

    Install

    npm i @backtrack/preset-jest

    Weekly Downloads

    33

    Version

    0.15.0

    License

    MIT

    Unpacked Size

    65.8 kB

    Total Files

    15

    Last publish

    Collaborators

    • chrisblossom