Created
April 4, 2022 06:27
-
-
Save xiongemi/b4f8a16fb47c3116f01e3e38202f44f3 to your computer and use it in GitHub Desktop.
start react native unit test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { render } from '@testing-library/react-native'; | |
import Results from './results'; | |
describe('Results', () => { | |
it('should render successfully', () => { | |
const { container } = render(<Results />); | |
expect(container).toBeTruthy(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment