@gulp-utils/gulp-core-build-jest
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@gulp-utils/gulp-core-build-jest

gulp-core-build-jest is a gulp-core-build subtask which introduces the ability to test packages, using jest.

npm version Dependencies

Tasks

JestTask

Description

This task invokes jest using a consumer-specified jest.config.js on a package.

Usage

const {jest} = require("@gulp-utils/gulp-core-build-jest");
const {initialize, parallel, serial, task} = require("@microsoft/gulp-core-build");
const {tscCmd, tslintCmd} = require("@microsoft/gulp-core-build-typescript");

jest.setConfig({
  configPath: "./jest.config.js"
});

task("default", serial(parallel(tscCmd, tslintCmd), jest));

initialize(require("gulp"));

Config

interface IJestTaskConfig {
    configPath?: string;
    config?: Config.Argv;
}

Readme

Keywords

none

Package Sidebar

Install

npm i @gulp-utils/gulp-core-build-jest

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

14.9 kB

Total Files

14

Last publish

Collaborators

  • tnc1997