-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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: move questions-remain into cypress repo #29542
Conversation
@@ -0,0 +1,39 @@ | |||
const la = require('lazy-ass') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,46 @@ | |||
/* global sinon */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | ||
|
||
it('is a function', () => { | ||
if (typeof questionsRemain !== 'function') throw new Error('questionsRemain is not a function') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the is
dep. 🤷🏻♀️
} | ||
|
||
// console.log(questionsRemain(propertiesToQuestions)(options)) | ||
return questionsRemain(propertiesToQuestions)(options).then(snapshot) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are promises, so chain .then
with snapshot
@@ -197,7 +196,7 @@ | |||
"semver": "7.5.3", | |||
"shelljs": "0.8.5", | |||
"sinon": "7.3.2", | |||
"snap-shot-it": "7.9.3", | |||
"snap-shot-it": "7.9.10", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was having issues with snapshot and though this would fix it. Seems like a good change even though it's not needed for this update.
10 flaky tests on run #55504 ↗︎
Details:
e2e/origin/basic_login.cy.ts • 1 flaky test • 5x-driver-firefox
|
Additional details
This moves the functionality of the https://github.com/cypress-io/questions-remain repo into the Cypress repo. It is only used for this repo within our company.
The repo is a single file, with a single test file. I think it's better managed within the main repo where all deps can be kept up to date together and no release motions are required outside of the repo. Additionally, outside users will not have an expectation to maintain this code for outside use.
I intend to archive the https://github.com/cypress-io/questions-remain repo once this is merged.
Steps to test
I moved a unit test over from the other repo. It was already a bit out of date tbh.
How has the user experience changed?
N/A - should be no change.
PR Tasks
cypress-documentation
?type definitions
?