Skip to content

Typescript development problem: Is specialized knowledge required to solve fourslash errors? #56283

Closed as not planned
@craigphicks

Description

@craigphicks

Acknowledgement

  • I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion.

Comment

I have a pull #56281 which involves changing src/lib/rs5.d.ts.
I think because it changes that file, there are a few fourslash errors similar to this one:

         fourslash tests
           tests/cases/fourslash/completionListInTypeParameterOfClassExpression1.ts
             fourslash test completionListInTypeParameterOfClassExpression1.ts runs correctly:
     AssertionError: At marker "4": expected [ 'D', 'any', 'Array', …(138) ] to deeply equal [ 'D', 'any', 'Array', …(137) ]
      at _TestState.verifyCompletionsAreExactly (src/harness/fourslashImpl.ts:1213:16)
      at _TestState.verifyCompletionsWorker (src/harness/fourslashImpl.ts:1074:18)
      at _TestState.verifyCompletions (src/harness/fourslashImpl.ts:1009:25)
      at Verify.completions (src/harness/fourslashInterfaceImpl.ts:251:31)
      at eval (completionListInTypeParameterOfClassExpression1.js:8:8)
      at runCode (src/harness/fourslashImpl.ts:4607:9)
      at runFourSlashTestContent (src/harness/fourslashImpl.ts:4565:5)
      at runFourSlashTest (src/harness/fourslashImpl.ts:4548:5)
      at Context.<anonymous> (src/testRunner/fourslashRunner.ts:60:39)
      at processImmediate (node:internal/timers:478:21)

They don't go away after hereby baseline-accept.
Does this require changing the LKG?
Otherwise, how to inspect the differences and modify the baseline?

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions