Answers for "how to test reacet native app"

PHP
1

write test case in react native

import React from "react";
import renderer from "react-test-renderer";
import App from "./App.js"
describe("<App />", () => {
    it('has 1 child', () => {
        const tree = renderer.create(<App />).toJSON();
        expect(tree.children.length).toBe(1);
    });
});
Posted by: Guest on October-21-2020

Code answers related to "how to test reacet native app"

Browse Popular Code Answers by Language