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

test: add to runtest + fix bindings #824

Merged
merged 2 commits into from
Dec 8, 2023
Merged

test: add to runtest + fix bindings #824

merged 2 commits into from
Dec 8, 2023

Conversation

jchavarri
Copy link
Collaborator

@jchavarri jchavarri commented Nov 22, 2023

  • Runs jest as part of runtest alias Edit: see below
  • Fixes some bindings to Document APIs

@jchavarri
Copy link
Collaborator Author

Oh, just realized we were running jest explicitly in CI. Happy to roll that part back (I think I get confused because I expect runtest to do everything for me...)

as tests are launched explicitly in ci
@@ -84,7 +84,7 @@ module Simulate = {

external document: Dom.document = "document";

[@mel.send]
[@mel.return nullable] [@mel.send]
Copy link
Member

Choose a reason for hiding this comment

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

for my understanding: we're adding @mel.return nullable because querySelector may return null or undefined and we want to convert it to an option?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually it can only return null. https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector

Maybe I should use null_to_opt? To be more specific.

Copy link
Member

Choose a reason for hiding this comment

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

this might be a good idea, but no strong opinions

@jchavarri jchavarri merged commit 012974e into main Dec 8, 2023
3 checks passed
@jchavarri jchavarri deleted the run-n-fix-tests branch December 8, 2023 08:28
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.

2 participants