jeudi 24 octobre 2019

FlatList testing using Jest/Enzyme

How to test FlatList using Jest and Enzyme? I cant figure out how to check if it has got keyExtractor or not.

    it('flatlist should have keyExtractor', () => {


        wrapper
            .find('FlatList')
            .props()
            .keyExtractor();
    });
});

Aucun commentaire:

Enregistrer un commentaire