-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Feature: test.skip/only/todo aliases #1605
Comments
Skip is the same as |
Cool, thanks for the info. But what if I prefer the |
You don't have to use Jasmine, believe it supports swapping out the env to something like TAP if you prefer. |
True, but why can't we just add these things? I don't see any harm in doing so... If the |
Increasing the API surface area just because you personally want something is kind of unreasonable, IMO. The Jest team specifically built in those escape hatches for people like yourself that want further customization. |
Right, and what I'm suggesting is the idea of least surprise. Because the escape hatch exists, it's surprising to me that it doesn't behave as expected. I'm done bikeshedding. I'll wait for a member of the project to comment. |
I'm switching some of my projets from AVA to Jest (still like AVA but Jest has a better "out-of-the-box" support for React/UI components IMO) and I miss some of those as well!
it('does stuff ', () => {
}); but Jest displays those as successful tests which is not really what I want, it doesn't help much with my organisation. Those features are not that important but nice to have and will greatly improve the general developer experience 😊 |
i really wanted those too. I aliased some of them here
|
I don't see value in
|
I'm ok to leave that one off. I've never really used it before. |
@DmitriiAbramov test.todo seems easy enough to add. Do you mind helping with this since you already added all the other ones from this issue? |
the docs seem to say that test.skip() is available now, is that not the case? I can just use xit insead for now, but it was confusing. jest version 15.1.1 says it.skip is not a function. |
ah, we accidentally pushed the website but not a release yet. There'll be a new release in the next few days. |
This will be in 16: #1775 |
Nice! |
@cpojer are you still opposed to I find it an awesome way to keep around todos in the code itself, instead of in issues (or docs). I may know how I want something to behave, even though I'm unable/don't have the time to implement it right away. When I feel like hacking around, I can just grep for Another use case, which is highlighted in Ava's docs, is that people can contribute failing tests for expected behavior as a separate thing from fixing it. I can implement this if it's going to be accepted, but don't want to spend time on it since you've said in this issue you don't want it. |
@SimenB yeah, I'm fine with it. |
Cool! I've spun up a separate issue for it as this has been closed for a year. #4627 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Thanks for Jest!
I'm basically looking for the same functionality that
AVA
has:skip
only
todo
There's also a handy
test.failing
feature. I've never used it, but I can see how it could be valuable!The text was updated successfully, but these errors were encountered: