Johan Blumenberg
Johan Blumenberg
This commit adds support for mocking interfaces, like this: ```js interface Foo { bar(value: string): string; } let mockedFoo: Foo = imock(); let foo: Foo = instance(mockedFoo); when(mockedFoo.bar('a')).thenReturn('b'); ```
Mock free functions, without the need for any class to mock Example: ```typescript let fn: (a: number, b: string) => number = fnmock(); when(fn(10, 'hello')).thenReturn(5); instance(fn)(10, 'hello'); // returns 5...
Useful utility to defer promise resolution: ```typescript let d = defer(); when(obj.method()).thenReturn(d); // Return a promise that is not resolved yet d.resolve(1); // Later, the promise is resolved or rejected...
Adding support for waiting until an asynchronous method is invoked. This is useful when mocking an API that doesn't use promises that you can await, but uses callback functions. Inspired...
Add `startsWith()` and `endsWith()` string matchers. Update types on matchers for better type safety. For example, before this PR, this would be compiling, even though it is invalid code: ```typescript...
## Description My project consists of a `spring-webflux` application using `r2dbc` for persistence. When enabling detailed logging for DB connections and queries, the wrong traceId is logged for many of...
## The problem I am testing a `react-native` application on the iOS simulator. `react-native `is forwarding all console logs to syslog, on the appropriate level. I am trying to collect...
## Issue **version**: 1.9.0 **usage context**: - [x] maven command line: 3.8.3 **Problem description**: One reason for adding a timestamp to the version is that you want to have strictly...
## Issue **version**: 1.9.0 **usage context**: - [x] maven command line: 3.8.3 **Problem description**: Currently, when using `` to add the commit timestamp to the generated version, the timestamp is...
## Bug Description Every now and then we see a failure to refresh the ephemeral certificate used to connect to Cloud SQL. Most of the time this is just an...