Skip to content

Commit 2378ff3

Browse files
committed
Fix lint and allow null keyword
1 parent 9a415a2 commit 2378ff3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/harness/definitelyRunner.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,22 @@ class DefinitelyTypedRunner extends RunnerBase {
3636
it("should build successfully", () => {
3737
const cwd = path.join(__dirname, "../../", DefinitelyTypedRunner.testDir, directoryName);
3838
const timeout = 600000; // 600s = 10 minutes
39-
if (fs.existsSync(path.join(cwd, 'package.json'))) {
39+
if (fs.existsSync(path.join(cwd, "package.json"))) {
4040
const stdio = isWorker ? "pipe" : "inherit";
4141
const install = cp.spawnSync(`npm`, ["i"], { cwd, timeout, shell: true, stdio });
4242
if (install.status !== 0) throw new Error(`NPM Install for ${directoryName} failed!`);
4343
}
4444
Harness.Baseline.runBaseline(`${this.kind()}/${directoryName}.log`, () => {
4545
const result = cp.spawnSync(`node`, [path.join(__dirname, "tsc.js")], { cwd, timeout, shell: true });
46+
// tslint:disable:no-null-keyword
4647
return result.status === 0 ? null : `Exit Code: ${result.status}
4748
Standard output:
4849
${result.stdout.toString().replace(/\r\n/g, "\n")}
4950
5051
5152
Standard error:
5253
${result.stderr.toString().replace(/\r\n/g, "\n")}`;
54+
// tslint:enable:no-null-keyword
5355
});
5456
});
5557
});

0 commit comments

Comments
 (0)