@nstudio/web
Version:
Web Plugin for xplat
14 lines (13 loc) • 576 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.runSchematic = runSchematic;
exports.callRule = callRule;
const path_1 = require("path");
const testing_1 = require("@angular-devkit/schematics/testing");
const testRunner = new testing_1.SchematicTestRunner('@nstudio/web', (0, path_1.join)(__dirname, '../../collection.json'));
function runSchematic(schematicName, options, tree) {
return testRunner.runSchematic(schematicName, options, tree);
}
function callRule(rule, tree) {
return testRunner.callRule(rule, tree).toPromise();
}
;