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

后端 未结 7 2039
滥情空心
滥情空心 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

提交回复
热议问题