Issue
I understand describe() and it() in jest but I have following queries on xit():
- How should xit() be used along with describe() and it()?
Solution
Speaking for myself, I use xit()
when I want to temporarily disable that specific test. Running the test will only report that the xit()
exists, therefore documenting it and reminding me, but it won't actually run the test.
Later, when I'm otherwise done making changes, I either delete that part of the test or change it back to it()
as appropriate.
Answered By - JSmart523
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.