Use built local on CI and not LKG (#29886)

* Use built local on CI and not LKG

* Adjust function to remove need for assertions

* Accept baseline diff to go back to local based baseline

* Remove comment
This commit is contained in:
Wesley Wigham 2019-02-12 17:55:19 -08:00 committed by GitHub
parent 75101d4b72
commit 6d2b738bd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View File

@ -24,7 +24,7 @@ const host = process.env.TYPESCRIPT_HOST || process.env.host || "node";
const defaultTestTimeout = 40000;
const useBuilt =
process.env.USE_BUILT === "true" ? true :
(process.env.USE_BUILT === "true" || process.env.CI === "true") ? true :
process.env.LKG === "true" ? false :
false;

View File

@ -1396,9 +1396,10 @@ namespace ts {
export function assign<T extends object>(t: T, ...args: (T | undefined)[]) {
for (const arg of args) {
for (const p in arg!) {
if (hasProperty(arg!, p)) {
t![p] = arg![p]; // TODO: GH#23368
if (arg === undefined) continue;
for (const p in arg) {
if (hasProperty(arg, p)) {
t[p] = arg[p];
}
}
}

View File

@ -8347,7 +8347,7 @@ declare namespace ts.server {
excludedFiles: ReadonlyArray<NormalizedPath>;
private typeAcquisition;
updateGraph(): boolean;
getExcludedFiles(): ReadonlyArray<NormalizedPath>;
getExcludedFiles(): readonly NormalizedPath[];
getTypeAcquisition(): TypeAcquisition;
setTypeAcquisition(newTypeAcquisition: TypeAcquisition): void;
}