Skip to content

server-test-utils: render() returns Cheerio not string (d.ts) #1131

Closed
@wiese

Description

@wiese

Version

1.0.0-beta.29

Reproduction link

https://codesandbox.io/s/4xvk5l7mo9

Steps to reproduce

index.d.ts declares render() as returning string while the documentation states that it is indeed "CheerioWrapper" (Cheerio) - the latter is also what can be observed when inspecting the result.

(f3dfb1e, for #571, may have been an impediment for this in the past but is long fixed.)

What is expected?

render() type definition declares Cheerio return value.

What is actually happening?

render() type definition declares string return value.


We created a hack around this using @types/cheerio.

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