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

Fix deep elements (<Foo.bar />) tests #21

Merged
merged 1 commit into from
Jun 8, 2019
Merged

Conversation

jchavarri
Copy link
Collaborator

This PR fixes an issue that was preventing the tests for elements that used deep accessors in the element function caller, like <Foo.bar /> or <Foo.Bar />.

The issue was related to the tests running on OCaml syntax (due to ocaml-migrate-parsetree driver not supporting Reason syntax) and this made that the generated OCaml code for <Foo.bar /> which transforms into Foo.Bar.createElement, being parsed as a Pexp_field expression.

Added also a lot of test cases for elements.

@jchavarri jchavarri merged commit a08a1c5 into master Jun 8, 2019
@jchavarri jchavarri deleted the fix-nested-elements branch June 8, 2019 11:33
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

Successfully merging this pull request may close these issues.

1 participant