UNPKG

nwixtoolset

Version:

Node module wrapper around the WIX Toolset executables.

29 lines (28 loc) 1.36 kB
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; Object.defineProperty(exports, "__esModule", { value: true }); const run_1 = require("./run"); const util_1 = require("./util"); /** * Runs the unit tests in one or more test packages. * For more information, see [Unit-testing custom actions with Lux](http://wixtoolset.org/documentation/manual/v3/overview/lux.html). * * @param src The msi file(s) to test. * @param [options] Options for the tester. */ function nit(src, options = {}) { return __awaiter(this, void 0, void 0, function* () { const args = ["-nologo"]; yield util_1.addPathFile(args, src); return run_1.raw.nit(args, options); }); } exports.nit = nit;