Skip to content

tests fail with TypeScript 4.8+ #266

@pmcelhaney

Description

@pmcelhaney

After upgrading to TypeScript 5, I'm having some trouble with lit-analyzer. It looks like the unit tests for lit-analyzer only go up to TypeScript 4.4, presumably because it depends on this package, which depends on TypeScript 4.4.

I was able to upgrade this package to 4.6 and run the tests. At version 4.7, I started getting errors that were resolved after updating to the latest ts-node.

At 4.8, the tests hang. I let the "spinner" run for a few minutes but it seems to be stuck.

❯ npm test              

> web-component-analyzer@2.0.0-next.4 pretest
> cd dev && npm i


up to date, audited 105 packages in 540ms

found 0 vulnerabilities

> web-component-analyzer@2.0.0-next.4 test
> cross-env TS_MODULE=current ava


⠏ 

Since I'm not familiar with the codebase I imagine progress would be very slow from this point forward. But I want to share what I've learned in the hope that it helps!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions