typemoq icon indicating copy to clipboard operation
typemoq copied to clipboard

A simple mocking library for TypeScript

Results 57 typemoq issues
Sort by recently updated
recently updated
newest added

Hello, got a small feature request! The `It` interface provides an `isAny()` method that matches anything and returns the type `any`. For typescript, it's generally frowned to explicitly use `any`...

Bumps [karma](https://github.com/karma-runner/karma) from 1.3.0 to 6.3.16. Release notes Sourced from karma's releases. v6.3.16 6.3.16 (2022-02-10) Bug Fixes security: mitigate the "Open Redirect Vulnerability" (ff7edbb) v6.3.15 6.3.15 (2022-02-05) Bug Fixes helper:...

dependencies

**Background** My target class is constructed with a `UnitOfWorkFactory` instance. This instance encapsulates a reusable piece of code for creating transactions in TypeORM. This is done within the `trans` method....

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.5 to 4.17.21. Commits f299b52 Bump to v4.17.21 c4847eb Improve performance of toNumber, trim and trimEnd on large input strings 3469357 Prevent command injection through _.template's variable...

dependencies

Hi all, I submit this PR to include Captors to the library. This small contribution is inspired by Mockito's [ArgumentCaptor](https://static.javadoc.io/org.mockito/mockito-core/2.6.9/org/mockito/ArgumentCaptor.html) and I find it very useful to test interaction between...

As per this issue: https://github.com/lodash/lodash/issues/4582 the `lodash` version being used has security vunerabilities. Can you update your dependencies to use latest version?

It looks like the only usage of lodash is in [Match.ts](https://github.com/florinn/typemoq/blob/0721689785fe533e68fe455280288980020c7eac/src/Match/Match.ts) so you're bringing in [over a MB](https://packagephobia.now.sh/result?p=typemoq) of lodash code to do something that takes a couple lines of...

I'm trying to mock a function, and then verify it gets called. I'm using the below code: // arrange const safeEvalMock: IMock any> = Mock.ofInstance(() => It.isAny()); const action =...

I'm trying to use typemoq in an Angular project to mock up certain behavior and verify calls to Excel API (which isn't available at the time of testing so I...