What is the difference between 'it' and 'test' in Jest?

后端 未结 7 1974
滥情空心
滥情空心 2021-01-29 20:12

I have two tests in my test group. One of the tests use it and the other one uses test. Both of them seem to be working very similarly. What is the dif

相关标签:
7条回答
  • 2021-01-29 21:14

    You can replace it() with xit() to temporarily exclude a test from being executed; using it() and xit() is more eloquent then using test() and xit().

    see Focusing and Excluding Tests

    0 讨论(0)
提交回复
热议问题