joetidee / enzyme-react-intl

A complimentary wrapper function for use with Enzyme, when testing React components that rely on react-intl
MIT License
45 stars 14 forks source link

ShallowWithIntl: Supprt enzyme3 options? #13

Closed nelsonchen90 closed 6 years ago

nelsonchen90 commented 6 years ago

We can pass optional arguements options to shallow renderer in Enzyme 3: http://airbnb.io/enzyme/docs/api/shallow.html#arguments

but the implementation here doesn't support it https://github.com/joetidee/enzyme-react-intl/blob/3088da7126a1d9166366c0af5914eefca68122ec/src/index.js#L44

any plans?

joetidee commented 6 years ago

Feel free to open a PR.