-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: context.log.warn is not a function #295
Comments
Here's some sample code that reproduces the error when running |
Hi @rukasakurai, it looks like your original issue is resolved but I can keep this issue open to track better support for unit tests? Please note though that we likely won't publish those as there are many different testing frameworks and will rely on other folks to contribute (example: https://www.npmjs.com/package/azure-function-context-mock) |
It works.
|
Repro steps
context.log.warn("xxx");
to the codeExpected behavior
The expected behavior is that the unit test passes.
Actual behavior
TypeError: context.log.warn is not a function
The text was updated successfully, but these errors were encountered: