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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
I was trying to test my wrapper for Dialog component and I got a big stacktrace
test failed and shows irrelevant stacktrace (for me)
test is passed correctly and creates snapshot file.
import React from 'react'; import renderer from 'react-test-renderer'; import { Dialog, DialogActions, DialogContent, DialogTitle } from '@material-ui/core' test('Sidebar', () => { const component = renderer.create( <Dialog open onClose={() => {}} > <DialogTitle>qweqw</DialogTitle> <DialogContent>qweqweqwe</DialogContent> <DialogActions> </DialogActions> </Dialog> ); let tree = component.toJSON(); expect(tree).toMatchSnapshot(); });
npm test
I see a different stacktrace in codesandbox fr some reason. am I doing something wrong?
The text was updated successfully, but these errors were encountered:
I'm closing as a duplicate of #17992.
Sorry, something went wrong.
No branches or pull requests
I was trying to test my wrapper for Dialog component and I got a big stacktrace
Current Behavior 馃槸
test failed and shows irrelevant stacktrace (for me)
Expected Behavior 馃
test is passed correctly and creates snapshot file.
Steps to Reproduce 馃暪
npm test
https://codesandbox.io/s/kind-hugle-r14zn
I see a different stacktrace in codesandbox fr some reason. am I doing something wrong?
Your Environment 馃寧
The text was updated successfully, but these errors were encountered: