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: tests for Jest 27 #10

Merged
merged 6 commits into from
Jun 6, 2024
Merged

fix: tests for Jest 27 #10

merged 6 commits into from
Jun 6, 2024

Conversation

anmonteiro
Copy link
Member

No description provided.

Copy link
Member

@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.

@anmonteiro Thanks, sorry I missed this. Maybe worth adding an entry in the changelog?

[@@@mel.config { flags = [| "--preamble";
{|
/**
* @jest-environment jsdom
Copy link
Member

Choose a reason for hiding this comment

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

Should this be added in jest.config.js? Or is it beneficial to keep it here for more accuracy?

package.json Outdated
"@testing-library/jest-dom": "^6.4.1",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jsdom": "^24.0.0"
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this is needed because jest-environment-jsdom already depends on it: https://www.npmjs.com/package/jest-environment-jsdom?activeTab=dependencies.

However, we could update the opam depext field to reflect this new dependency.

* main:
  comment snapshotting for now
  fix call to npm-check-deps
  add ci
  chore: require dune 3.9 to pick up `melange.emit` fix from 3.8.2
  chore: add changelog for 0.1.1
  Revert "fix(opam): require melange v3"
@jchavarri jchavarri force-pushed the anmonteiro/fix-tests-jest27 branch from a231617 to dc60420 Compare June 6, 2024 06:23
@jchavarri
Copy link
Member

@anmonteiro Thanks, I'm gonna merge this as it unblocks the work in #12. The nix build is failing for some reason, but now that there's opam pipeline at least we can keep checking things work. Could you please help fix it? 🙏

@jchavarri jchavarri merged commit 29ec956 into main Jun 6, 2024
2 of 3 checks passed
@jchavarri jchavarri deleted the anmonteiro/fix-tests-jest27 branch June 6, 2024 06:32
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