Kevin Grady
03/09/2023, 6:51 PMlike() methods are erroring out due to type mismatches. When I looked into the AnyTemplate class, I see that it is deprecated. What are my options here?
it('should return the correct data from POST call', async () => {
await mockProvider.addInteraction({
states: '[]',
uponReceiving: 'a request to create a tenant',
withRequest: {
method: 'POST',
path: '/tenant',
body: like(reqBody),
headers: requestHeaders,
},
willRespondWith: {
status: 201,
headers: responseHeaders,
body: like(responseBody),
},
});
const tenant = await lastValueFrom(service.createTenant(requestHeaders, reqBody));
expect(tenant).toStrictEqual(camelCaseObjectKeys(responseBody));
});Matt (pactflow.io / pact-js / pact-go)
AnyTemplate was removed from the matchers in 11.0.0. So have you wrapped the interface somehow?Matt (pactflow.io / pact-js / pact-go)
unknown - so it’s much wider than beforeTimothy Jones
03/11/2023, 10:17 PMTimothy Jones
03/11/2023, 10:18 PMnpm install again might fix itKevin Grady
03/13/2023, 9:25 PMnpm install after nuking node_modules