-
-
Notifications
You must be signed in to change notification settings - Fork 728
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
Check command #4727
base: 3.x
Are you sure you want to change the base?
Check command #4727
Conversation
@DavertMik what do you think if running all checks in parallel using Promise.all?
|
lib/command/check.js
Outdated
if (!Object.values(checks).every(check => check === true)) { | ||
output.error("Something went wrong. Checks didn't pass.") | ||
output.print() | ||
getMachineInfo() |
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.
missing await here I think.
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.
yes! thank you
package.json
Outdated
@@ -93,7 +93,6 @@ | |||
"fn-args": "4.0.0", | |||
"fs-extra": "11.2.0", | |||
"glob": "^11.0.0", | |||
"fuse.js": "^7.0.0", |
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.
got error if this lib removed
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.
ouch, this is bad merge, right
@kobenguyent good point for using Promise.all |
@kobenguyent btw, it's only 1s on our workflow https://github.com/codeceptjs/CodeceptJS/actions/runs/12682764702/job/35348708849?pr=4727 |
@DavertMik I have two more things:
|
@DavertMik one more thing:
|
checks['config'] = err | ||
} | ||
|
||
printCheck('config', checks['config'], config.name) |
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.
how about config name
here?
Created
check
command to quickly test config, tests, and that browser can be started and finishedThis can be done locally or on CI before running tests