-
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(client): Pass --ci flag when invoking jest #23596
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 7 out of 27 changed files in this pull request and generated no comments.
Files not reviewed (20)
- common/lib/common-utils/package.json: Language not supported
- examples/apps/collaborative-textarea/package.json: Language not supported
- examples/apps/contact-collection/package.json: Language not supported
- examples/apps/data-object-grid/package.json: Language not supported
- examples/apps/presence-tracker/package.json: Language not supported
- examples/apps/task-selection/package.json: Language not supported
- examples/apps/tree-comparison/package.json: Language not supported
- examples/benchmarks/bubblebench/baseline/package.json: Language not supported
- examples/benchmarks/bubblebench/experimental-tree/package.json: Language not supported
- examples/benchmarks/bubblebench/ot/package.json: Language not supported
- examples/benchmarks/bubblebench/shared-tree/package.json: Language not supported
- examples/data-objects/canvas/package.json: Language not supported
- examples/data-objects/clicker/package.json: Language not supported
- examples/data-objects/diceroller/package.json: Language not supported
- examples/data-objects/inventory-app/package.json: Language not supported
- examples/data-objects/multiview/container/package.json: Language not supported
- examples/data-objects/todo/package.json: Language not supported
- examples/version-migration/live-schema-upgrade/package.json: Language not supported
- examples/version-migration/same-container/package.json: Language not supported
- examples/version-migration/separate-container/package.json: Language not supported
@@ -31,7 +31,7 @@ | |||
"start": "webpack serve", | |||
"start:client:test": "webpack serve --config webpack.test.cjs", | |||
"test": "npm run test:jest", | |||
"test:jest": "jest", | |||
"test:jest": "jest --ci", | |||
"test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --passWithNoTests", |
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.
jest invocation without --ci
- perhaps this is a special case (others don't have --passWithNoTests
)?
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 setting it explicitly. However, to be capable of running tests in an environment as close to CI as possible, even when running locally, the scripts have been updated to pass the--ci
flag whenever jest is invoked.Alternative to #23590.