Skip to content

Testing Error initializeTransactionalContext() #89

Open
@sgentile

Description

@sgentile

So I'm using Jest and we are strictly doing unit tests -

I used the example

jest.mock('typeorm-transactional-cls-hooked', () => ({
            Transactional: () => () => ({}),
            BaseRepository: class {},
        }));

But it errors on initializeTransactionalContext(). Where would initializeTransactionalContext be used within a jest unit test ?

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