-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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(server): align test folder structure to src folder structure #18597
Conversation
Thanks for taking the time to open a PR!
|
@@ -2412,25 +2412,3 @@ describe('lib/config', () => { | |||
}) | |||
}) | |||
}) | |||
|
|||
describe('lib/util/config', () => { |
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.
moved to util/config_spec.js test file
@@ -5,7 +5,7 @@ const utils = require(`${root}../lib/browsers/utils`) | |||
const snapshot = require('snap-shot-it') | |||
|
|||
const normalizeBrowsers = (message) => { | |||
return message.replace(/(found are: ).*/, '$1chrome, firefox, electron') | |||
return message.replace(/(found on your system are:)((\n.*)*)/, '$1\n- chrome\n- firefox\n- electron') |
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.
fixes this snapshot error which will vary depending on the browsers installed on one's machine:
----------
Difference
----------
Available browsers found on your system are:
- chrome
- firefox
+- edge
- electron
-------------------
Saved snapshot text
-------------------
Can't run because you've entered an invalid browser name.
Browser: 'browserNotGonnaBeFound' was not found on your system or is not supported by Cypress.
Cypress supports the following browsers:
- chrome
- chromium
- edge
- electron
- firefox
You can also use a custom browser: https://on.cypress.io/customize-browsers
Available browsers found on your system are:
- chrome
- firefox
- electron
------------
Current text
------------
Can't run because you've entered an invalid browser name.
Browser: 'browserNotGonnaBeFound' was not found on your system or is not supported by Cypress.
Cypress supports the following browsers:
- chrome
- chromium
- edge
- electron
- firefox
You can also use a custom browser: https://on.cypress.io/customize-browsers
Available browsers found on your system are:
- chrome
- firefox
- edge
- electron
--------
Diff end
--------
Test summaryRun details
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 |
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.
Very nice 👍 I like this a lot!
In the
packages/server
module:PR Tasks