| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
✅ Deploy Preview for vitest-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Sorry, something went wrong.
✅ Deploy Preview for vitest-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Sorry, something went wrong.
There was a problem hiding this comment.
Sounds good to me, but is it possible for us to ban mutating to do anything ctx.foo = "bar"? 🤔 I feel like this is something automatically working and would we need an extra code to forcefully not allow this kind of mutation?
(Maybe banning runtime is not necessary as long as we can hide such API from typing?)
Sorry, something went wrong.
What is the benefit of banning this? If you don't use test.extend, there is no other way to extend the context. If you are using it, it will already throw an error. |
Sorry, something went wrong.
|
I'm not necessary suggesting to ban, but then what does deprecating mean in this PR? Isn't it only clarifying beforeEach(ctx) { ctx.foo } and test.extend don't work together? |
Sorry, something went wrong.
Yes, it just clarifies that we don't recommend it and these examples will be removed in the next major. I want us to have a single way of working with context, just like we decided to promote the inline workspace. |
Sorry, something went wrong.
|
Sounds good 👍 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Description
Related: #7701
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
Documentation
Changesets