We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da009b8 commit 8cc7953Copy full SHA for 8cc7953
tests/cases/unittests/transpile.ts
@@ -23,6 +23,13 @@ module ts {
23
function test(input: string, testSettings: TranspileTestSettings): void {
24
25
let transpileOptions: TranspileOptions = testSettings.options || {};
26
+ if (!transpileOptions.compilerOptions) {
27
+ transpileOptions.compilerOptions = {};
28
+ }
29
+ if(transpileOptions.compilerOptions.newLine === undefined) {
30
+ // use \r\n as default new line
31
+ transpileOptions.compilerOptions.newLine = ts.NewLineKind.CarriageReturnLineFeed;
32
33
34
let canUseOldTranspile = !transpileOptions.renamedDependencies;
35
0 commit comments