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

Migrate snapshot to cram #767

Merged
merged 10 commits into from
Sep 6, 2023
Merged

Migrate snapshot to cram #767

merged 10 commits into from
Sep 6, 2023

Conversation

davesnx
Copy link
Member

@davesnx davesnx commented Sep 4, 2023

As usual, a migration to cram tests

Copy link
Collaborator

@jchavarri jchavarri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

ppx/dune Outdated
(name standalone)
(modules standalone)
(package reason-react-ppx)
(public_name reason-react-ppx.standalone)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason to make this public? I think the ppx will always be consumed as a library.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can be useful to run the ppx transformation as an executable. I'm in favor of this one.

I'd name it to a better name though. I think it can even be called reason-react-ppx. it'll be installed in bin/reason-react-ppx.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't know was possible the same name as the lib

@@ -0,0 +1,20 @@
$ ../ppx.sh input.re
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why sometimes ppx_with_refmt is used and some other times just ppx?

…-ppx-tests-to-cram-tests

* 'main' of github.com:/reasonml/reason-react:
  Allow memoCustomCompareProps on ppx (#766)
…l/reason-react into Migrate-ppx-tests-to-cram-tests

* 'Migrate-ppx-tests-to-cram-tests' of github.com:/reasonml/reason-react:
  Rename standalone as 'reason-react-ppx'
@davesnx davesnx merged commit 7ce05ee into main Sep 6, 2023
jchavarri added a commit that referenced this pull request Sep 6, 2023
* main:
  Migrate snapshot to cram (#767)
@jchavarri jchavarri deleted the Migrate-ppx-tests-to-cram-tests branch September 6, 2023 15:25
Copy link
Collaborator

@jchavarri jchavarri Sep 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just noticed one downside of this rearrangement is that now merlin tests are mixed up with the other ppx tests. I will open a PR to put them back together because the tests are quite different and it was nice to have them grouped together.

jchavarri added a commit that referenced this pull request Sep 6, 2023
* main:
  test: add merlin test for key prop (#771)
  Migrate snapshot to cram (#767)
davesnx added a commit that referenced this pull request Sep 6, 2023
…legacy-apis

* 'main' of github.com:/reasonml/reason-react:
  test: add merlin test for key prop (#771)
  Migrate snapshot to cram (#767)
  Allow memoCustomCompareProps on ppx (#766)
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.

3 participants