Skip to content
New issue

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

Error when trying to test the react-imask with react-test-renderer - "TypeError: Cannot read property 'isContentEditable' of null #750

Closed
React-JJ opened this issue Sep 26, 2022 · 1 comment

Comments

@React-JJ
Copy link

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:

  • Browser chrome
  • Version 6.4.2
  • IMask 6.4.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants