Skip to content

[typeBaselines] Poor message from harness when a compiler test causes errors in lib.d.ts #555

@JsonFreeman

Description

@JsonFreeman

In the typeBaselines branch, we get the following error when running the tests:

compiler tests for tests/cases/conformance/types/members/duplicateStringIndexers.ts Correct errors for tests/cases/conformanc
e/types/members/duplicateStringIndexers.ts:
AssertionError: total number of errors: expected 52 to equal 54
at Object.getErrorBaseline (C:\Work\XTeamUpdate\src\typescript\public\built\local\run.js:34387:20)

The problem is that the test has errors, but the compiler actually reports the errors in lib.d.ts. This is arguably a bug in the compiler, but the harness should also be more explicit about this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions