Open lj91421 opened 3 years ago
Hey @lj91421 , I too am facing this issue. Did you end up resolving it?
@lprhodes This does seem to be working for me now. I only changed the mocking of the start execution. it looks like:
AWSMock.mock(stepFunctions, 'startExecution', (params: any, callback: any) => { callback(null, response); });
Thanks @lj9142 For us it was the difference between import * as AWSMock
and import AWSMock
that caused the problem
I have a function calling stepfunctions.startExecution(params) which i need to mock and the mock i am trying isn't working.
My function:
and my test looks like:
Am i doing something wrong?
Packages: "aws-sdk": "^2.847.0", "aws-sdk-mock": "^5.1.0", "jest": "26.6.0",