diff --git a/_infrastructure/tests/runner.js b/_infrastructure/tests/runner.js index 855cffa698..fd926bcb1c 100644 --- a/_infrastructure/tests/runner.js +++ b/_infrastructure/tests/runner.js @@ -586,6 +586,8 @@ var DefinitelyTyped; var command = 'node ./_infrastructure/tests/typescript/tsc.js --module commonjs '; if (IO.fileExists(tsfile + '.tscparams')) { command += '@' + tsfile + '.tscparams'; + } else { + command += '--noImplicitAny'; } Exec.exec(command, [tsfile], function (ExecResult) { callback(ExecResult); diff --git a/_infrastructure/tests/runner.ts b/_infrastructure/tests/runner.ts index bd60ebe7ab..68e5f36bad 100644 --- a/_infrastructure/tests/runner.ts +++ b/_infrastructure/tests/runner.ts @@ -31,6 +31,8 @@ module DefinitelyTyped { var command = 'node ./_infrastructure/tests/typescript/tsc.js --module commonjs '; if (IO.fileExists(tsfile + '.tscparams')) { command += '@' + tsfile + '.tscparams'; + } else { + command += '--noImplicitAny'; } Exec.exec(command, [tsfile], (ExecResult) => { callback(ExecResult);