@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.
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;
}