We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Error when trying to test the react-imask with react-test-renderer - "TypeError: Cannot read property 'isContentEditable' of null"
To Reproduce Create a react project. Add a test file App.test.js import { IMaskInput } from 'react-imask'; describe('React Date Mask snapshot test',() => { it('renders correctly', () => { const tree = renderer .create(<IMaskInput mask={Date} />) .toJSON(); expect(tree).toMatchSnapshot(); }); })
import { IMaskInput } from 'react-imask'; describe('React Date Mask snapshot test',() => { it('renders correctly', () => { const tree = renderer .create(<IMaskInput mask={Date} />) .toJSON(); expect(tree).toMatchSnapshot(); }); })
Expected behavior The mask control should work with react-test-renderer.
Environment:
The text was updated successfully, but these errors were encountered:
not related to imask https://stackoverflow.com/questions/40852131/refs-are-null-in-jest-snapshot-tests-with-react-test-renderer facebook/react#7740
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Error when trying to test the react-imask with react-test-renderer - "TypeError: Cannot read property 'isContentEditable' of null"
To Reproduce
Create a react project. Add a test file
App.test.js
import { IMaskInput } from 'react-imask'; describe('React Date Mask snapshot test',() => { it('renders correctly', () => { const tree = renderer .create(<IMaskInput mask={Date} />) .toJSON(); expect(tree).toMatchSnapshot(); }); })
Expected behavior
The mask control should work with react-test-renderer.
Environment:
The text was updated successfully, but these errors were encountered: