What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-05 09:04:22
simple jest test cases for array of objects
import pizzas from '../data'; // very basic test to notify the user if our pizza data has changed test('the pizza data is correct', () => { expect(pizzas).toMatchSnapshot(); expect(pizzas).toHaveLength(4); expect(pizzas.map(pizza => pizza.nam... Add solution