mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Remove "No type information for this code" from baseline (#51311)
* Fix "No type information for this code" in baseline * Just remove the message
This commit is contained in:
@@ -808,21 +808,14 @@ namespace Harness {
|
||||
typeLines += ">" + formattedLine + "\r\n";
|
||||
}
|
||||
|
||||
// Preserve legacy behavior
|
||||
if (lastIndexWritten === undefined) {
|
||||
for (const codeLine of codeLines) {
|
||||
typeLines += codeLine + "\r\nNo type information for this code.";
|
||||
lastIndexWritten ??= -1;
|
||||
if (lastIndexWritten + 1 < codeLines.length) {
|
||||
if (!((lastIndexWritten + 1 < codeLines.length) && (codeLines[lastIndexWritten + 1].match(/^\s*[{|}]\s*$/) || codeLines[lastIndexWritten + 1].trim() === ""))) {
|
||||
typeLines += "\r\n";
|
||||
}
|
||||
typeLines += codeLines.slice(lastIndexWritten + 1).join("\r\n");
|
||||
}
|
||||
else {
|
||||
if (lastIndexWritten + 1 < codeLines.length) {
|
||||
if (!((lastIndexWritten + 1 < codeLines.length) && (codeLines[lastIndexWritten + 1].match(/^\s*[{|}]\s*$/) || codeLines[lastIndexWritten + 1].trim() === ""))) {
|
||||
typeLines += "\r\n";
|
||||
}
|
||||
typeLines += codeLines.slice(lastIndexWritten + 1).join("\r\n");
|
||||
}
|
||||
typeLines += "\r\n";
|
||||
}
|
||||
typeLines += "\r\n";
|
||||
yield [checkDuplicatedFileName(unitName, dupeCase), Utils.removeTestPathPrefixes(typeLines)];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user