-
Notifications
You must be signed in to change notification settings - Fork 535
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
build: Replace jest --ci flag with env variable #23590
base: main
Are you sure you want to change the base?
Conversation
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.
Copilot reviewed 1 out of 6 changed files in this pull request and generated no comments.
Files not reviewed (5)
- common/lib/common-utils/package.json: Language not supported
- examples/client-logger/app-insights-logger/package.json: Language not supported
- package.json: Language not supported
- packages/tools/devtools/devtools-test-app/package.json: Language not supported
- packages/tools/devtools/devtools-view/package.json: Language not supported
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.
Whoa these don't seem right! I just added a new dep tha should already be in the lockfile. I'll try on some other machines.
I am thinking that rather than messing with an environment variable, we should just use |
Maybe? That seems unnecessarily verbose given what the setting controls (according to the docs); I'd rather just remove it altogether. The only practical thing we lose if we do that is the ability to run some tests locally exactly as they're run in CI, but again, given what the flag controls in particular, seems like an acceptable loss for less clutter in the scripts. But a lot of this is biased because I don't see the value in this flag. |
🔗 No broken links found! ✅ Your attention to detail is admirable. linkcheck output
|
The Jest CLI
--ci
flag cannot be set in its config file like other settings, but it defaults to isCI from the is-ci package, which in turn uses ci-info, which supports azure. So the flag should already be set to true by default in CI even without checking the env vars ourselves. However, to be capable of running tests in an environment as close to CI as possible, the test scripts that used--ci
have been updated to set the TF_Build environment variable, which is what Azure uses.