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

后端 未结 7 1977
滥情空心
滥情空心 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 20:57

    Jest haven't mentioned why they have two versions for the exact same functionality.

    My guess is, it's only for convention. test is for unit tests, and it is for integration tests.

提交回复
热议问题