这是indexloc提供的服务,不要输入任何密码
Skip to content

Mocking @Transactional with Mocha test suite #48

@chiarag

Description

@chiarag

While I see that there is a nice way to mock @Transactional (and other functions) with Jest, we have a large code base using Mocha. So switching over to Jest is pretty problematic.

Has anyone successfully stubbed the decorator with sinon and mocha? I'm poking around proxyquire but this is a TypeScript code base and it doesn't seem as though there is much documentation for how you use proxyquire with TypeScript.

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