Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Definition of jasmine expect not resolved correctly #285

Open
@felixfbecker

Description

@felixfbecker

Repro: https://sourcegraph.com/github.com/angular/angular/-/blob/aio/aio-builds-setup/dockerbuild/scripts-js/test/clean-up/build-cleaner.spec.ts#L63:54

Expected (tsserver):

image

Actual:

image

Which means j2d on toHaveBeenCalled fails.

Investigation notes:

  • the definition resolved by tsserver is /aio/aio-builds-setup/dockerbuild/scripts-js/node_modules/@types/jasmine/index.d.ts
  • that file is available in InMemoryFileSystem and added to the InMemoryLanguageServiceHost (in filePath and expectedFilePaths)
  • I put all logging on verbose (traceModuleResolution etc), jasmine doesn't even appear in the logs
  • It works sometimes, but very rarely

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions