definition-tester
Version:
DefinitelyTyped repository testing infrastructure
24 lines • 892 B
JavaScript
;
var TestResult_1 = require('../test/TestResult');
var Tsc_1 = require('../tsc/Tsc');
var TscTest = (function () {
function TscTest(suite, tsConfigFile, options) {
this.suite = suite;
this.tsConfigFile = tsConfigFile;
this.options = options;
}
TscTest.prototype.run = function () {
var _this = this;
return Tsc_1.default(this.tsConfigFile.fullPath, this.options).then(function (diagnostics) {
var testResult = new TestResult_1.default();
testResult.hostedBy = _this.suite;
testResult.targetFile = _this.tsConfigFile;
testResult.diagnostics = diagnostics;
return testResult;
});
};
return TscTest;
}());
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = TscTest;
//# sourceMappingURL=TscTest.js.map