typeorm-transactional icon indicating copy to clipboard operation
typeorm-transactional copied to clipboard

Mocking @Transactional with Mocha test suite

Open chiarag opened this issue 1 year ago • 0 comments

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.

chiarag avatar Jan 31 '24 23:01 chiarag