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

chore: Replace usage of moment in cli / server code #9069

Merged
merged 7 commits into from
Jan 26, 2021

Conversation

jennifer-shehane
Copy link
Member

@jennifer-shehane jennifer-shehane commented Nov 3, 2020

User facing changelog

N/A - this is not user facing

Additional Details

We'll be moving forward with removing moment.js from the driver and cli types in the 7.0 breaking change.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Nov 3, 2020

Thanks for taking the time to open a PR!

@jennifer-shehane jennifer-shehane marked this pull request as draft November 3, 2020 10:20
@cypress
Copy link

cypress bot commented Nov 3, 2020



Test summary

9268 0 118 3


Run details

Project cypress
Status Passed
Commit 7354676
Started Jan 26, 2021 5:50 AM
Ended Jan 26, 2021 6:02 AM
Duration 12:01 💡
OS Linux Debian - 10.5
Browser Multiple

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@jennifer-shehane jennifer-shehane marked this pull request as ready for review November 4, 2020 05:18
@chrisbreiding
Copy link
Contributor

I'm guessing the cli types are there because of Cypress.moment in the driver. Maybe we should also replace it in the driver and get rid of Cypress.moment in time for 6.0?

@jennifer-shehane
Copy link
Member Author

Yeah, I am expecting this to be removed likely from the driver, but think this will probably be better slated for 7.0. Maybe we could add a deprecated warning soon though.

packages/desktop-gui/src/lib/utils.js Outdated Show resolved Hide resolved
@flotwig
Copy link
Contributor

flotwig commented Nov 10, 2020

I'm guessing the cli types are there because of Cypress.moment in the driver. Maybe we should also replace it in the driver and get rid of Cypress.moment in time for 6.0?

I'm in favor of this change, users can import moment themselves if they really need it

@jennifer-shehane jennifer-shehane marked this pull request as draft November 23, 2020 04:37
@jennifer-shehane jennifer-shehane marked this pull request as ready for review January 22, 2021 04:11
Copy link
Contributor

@panzarino panzarino left a comment

Choose a reason for hiding this comment

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

Didn't manually test but knowing the two libraries have the same API and tests pass, LGTM

@jennifer-shehane
Copy link
Member Author

The server-e2e-tests-chrome test flakes every single time on a different test to where I cannot get a passing example. Going to merge anyway.

@jennifer-shehane jennifer-shehane merged commit d1d15e6 into develop Jan 26, 2021
pashidlos pushed a commit to pashidlos/cypress that referenced this pull request Jan 30, 2021
@emilyrohrbough emilyrohrbough deleted the replace-moment-in-cli branch August 1, 2024 13:50
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.

4 participants