Merge pull request #5835 from Microsoft/noEmit

Do not emit files if noEmit is specified
This commit is contained in:
Sheetal Nandi
2015-12-01 14:34:28 -08:00
4 changed files with 3 additions and 28 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ class CompilerBaselineRunner extends RunnerBase {
it("Correct JS output for " + fileName, () => {
if (hasNonDtsFiles && this.emit) {
if (result.files.length === 0 && result.errors.length === 0) {
if (!options.noEmit && result.files.length === 0 && result.errors.length === 0) {
throw new Error("Expected at least one js file to be emitted or at least one error to be created.");
}