Converted about 25 *.test.ts files to --strictNullChecks (mostly automatically) (#65581)

* Manually added strict null checks in around 70 files

* Fixed tsconfig.strictNullChecks.json merge fail

* Touched up a few unnecessary type changes

* Removed files already in other PRs
This commit is contained in:
Josh Goldberg
2018-12-23 23:28:51 -05:00
committed by Matt Bierner
parent cb674e7d11
commit d659000852
41 changed files with 569 additions and 543 deletions

View File

@@ -25,7 +25,7 @@ function options(custom?: Partial<IBestWindowOrFolderOptions<ISimpleWindow>>): I
reuseWindow: false,
context: OpenContext.CLI,
codeSettingsFolder: '_vscode',
workspaceResolver: workspace => { return workspace === testWorkspace ? { id: testWorkspace.id, configPath: workspace.configPath, folders: toWorkspaceFolders([{ path: path.join(fixturesFolder, 'vscode_workspace_1_folder') }, { path: path.join(fixturesFolder, 'vscode_workspace_2_folder') }]) } : null; },
workspaceResolver: workspace => { return workspace === testWorkspace ? { id: testWorkspace.id, configPath: workspace.configPath, folders: toWorkspaceFolders([{ path: path.join(fixturesFolder, 'vscode_workspace_1_folder') }, { path: path.join(fixturesFolder, 'vscode_workspace_2_folder') }]) } : null!; },
...custom
};
}