-
Notifications
You must be signed in to change notification settings - Fork 16
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
Persist mutations to locals #17
Comments
alexandradeas
changed the title
Reflect mutations to locals
Persist mutations to locals
Jan 29, 2019
Yeah, the mocking is pretty "dumb" and doesn't handle locals well. Very happy for a PR 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Locals can not currently be mutated after their assignment. This causes issues when testing the following:
This is useful to test as some middleware can be reliant on previous middleware setting locals (such as decoding tokens).
@danawoodman I noticed from #12 that you mentioned you're not actively maintaining this repo anymore, in which case I'll get around to this when I get a chance. Otherwise if anyone else notices this I'm happy for them to pick this up.
The text was updated successfully, but these errors were encountered: