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

refactor: remove ramda dependency #98

Merged
merged 8 commits into from Aug 11, 2022
Merged

Conversation

mdjastrzebski
Copy link
Collaborator

@mdjastrzebski mdjastrzebski commented Aug 10, 2022

What:

Remove Ramda dependency and replace with plain JS method where possible.

Resolves #97

Why:

Ramda has affected performance of Jest tests due to badly implemented treeshaking, and attempt #79 to optimise it using custom imports have caused issues for some users.

How:

Refactor to use plain JS:

Migration:

  • Migrate toBeDisabled
  • Migrate toBeEmpty
  • Migrate toContainElement
  • Migrate toHaveProp
  • Migrate toHaveStyle
  • Remove Ramda dep from package.json

Checklist:

  • Documentation added to the docs
  • Typescript definitions updated
  • Tests
  • Ready to be merged

@codecov
Copy link

codecov bot commented Aug 10, 2022

Codecov Report

Merging #98 (ec11458) into main (7387349) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main       #98   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            8         8           
  Lines          143       151    +8     
  Branches        44        51    +7     
=========================================
+ Hits           143       151    +8     
Flag Coverage Δ
node-14 100.00% <100.00%> (ø)
node-16 100.00% <100.00%> (ø)
node-18 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/to-be-empty.js 100.00% <ø> (ø)
src/to-be-disabled.js 100.00% <100.00%> (ø)
src/to-contain-element.js 100.00% <100.00%> (ø)
src/to-have-prop.js 100.00% <100.00%> (ø)
src/to-have-style.js 100.00% <100.00%> (ø)
src/utils.js 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@mdjastrzebski mdjastrzebski changed the title refactor: migrate toContainElement refactor: remove Ramda dependency Aug 10, 2022
@MichaelDeBoey MichaelDeBoey changed the title refactor: remove Ramda dependency refactor: remove ramda dependency Aug 10, 2022
@mdjastrzebski mdjastrzebski merged commit 2ba27a9 into main Aug 11, 2022
@mdjastrzebski mdjastrzebski deleted the refactor/remove-ramda branch August 11, 2022 06:48
@github-actions
Copy link

🎉 This PR is included in version 4.0.11 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

refactor: remove Ramda dependency
2 participants