Merge pull request #6789 from Microsoft/transpileJs

suppress validation of output paths in transpile scenarios
This commit is contained in:
Vladimir Matveev
2016-02-01 11:27:27 -08:00
4 changed files with 15 additions and 1 deletions

View File

@@ -291,5 +291,14 @@ var x = 0;`,
options: { compilerOptions: { jsx: JsxEmit.React, newLine: NewLineKind.LineFeed } }
})
});
it("transpile .js files", () => {
const input = "const a = 10;";
const output = `"use strict";\nvar a = 10;\n`;
test(input, {
expectedOutput: output,
options: { compilerOptions: { newLine: NewLineKind.LineFeed, module: ModuleKind.CommonJS }, fileName: "input.js", reportDiagnostics: true },
expectedDiagnosticCodes: []
});
})
});
}