我在ReactJS中看到过许多测试用例()
示例:
describe('General behaviour', () => {
it('should call toggle() when clicked', () => {
// expect something
});
我看到了jest使用test()
的例子示例:
describe('matching cities to foods', () => {
test('Vienna <3 sausage', () => {
expect(isValidCityFoodPair('Vienna', 'Wiener Schnitzel')).toBe(true);
});
see more jest for react example in this link
它们有什么不同?