-
Any thoughts on implementing function spying? Specifically it would be nice if I could determine things about injected mocks like:
- callCount: how many times the function was called
- calledWith: w…
-
Take a look at this code:
```
import { when } from 'jest-when';
class MyName {
reGetName( name: string ) {
return name;
}
getName( name: string ) {
return this.reGetName( name );
…
-
I am testing with karma, and I've notice this.$watchAsObservable('text') doesn't emit values even though this.text has changed.
Thanks.
The test:
```
it('should be saved after timeout', (done)…
-
# 目的
我近期在建立一個關於socket.io應用的專案(類似聊天室),最近要做單元測試和回歸測試
# 使用的工具
我在 windows 7 下使用 npm 安裝 node.js v6.2.1,
socket.io v1.4
unittest 套件
mocha, should
# 操作流程
為了做socketIo的單元測試,我做了以下操作:
…
-
Hello,
Couldn't find such request, so opening a new one.
## Problem
I am interested in knowing what variables a mutation was fired with, while it's in progress. I find myself in a need of that on…
-
Hello @lukeed, I'm solving #9 issue, and when doing the tests I discover that your assert library doesn't have a way to test if some function was called. In other libraries like `jest` we can do it by…
-
I use `jest-when` quite a lot, and find it incredibly useful. However, I've struggled to get it to work when the `calledWith` parameter is itself a mock, like in the following scenario:
```
import…
-
That would expect a `Partial` of each of the arguments and apply `expect.objectContaining` matcher internally to each of the passed arguments.
**How it is useful**
Imagine method A receiving an …
-
The custom matcher part in read me would throw a compile error if used.
- According to readme we can create a custom matcher with the following code:
```
import { MatcherCreator, Matcher } fr…
-
**Is your feature request related to a problem? Please describe.**
Stryker does not have return value substitution mutator
**Describe the solution you'd like**
a mutator which changes
```
ret…