Skip to content

Jest shows error when loading relation with type-graphql-dataloader #35

Open
@aryawpratama

Description

@aryawpratama

I'm implementing jest for testing, and it tells me errors :
TypeError: Cannot read properties of undefined (reading 'typeormGetConnection')
and
TypeError: Cannot read properties of null (reading '_tgdContext')

The error was appearing only when an entity that containing Typeormloader is being loaded via jest, but it went normally either on server run or loading data from an entitiy without Typeormloader

Any solution? Thanks

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