Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tylerbutler
Copy link
Member

@tylerbutler tylerbutler commented Jan 17, 2025

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.

@Copilot Copilot bot review requested due to automatic review settings January 17, 2025 01:06

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
@github-actions github-actions bot added area: driver Driver related issues area: examples Changes that focus on our examples base: main PRs targeted against main branch labels Jan 17, 2025
@tylerbutler tylerbutler requested a review from a team January 17, 2025 01:20
@@ -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",
Copy link
Contributor

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)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: driver Driver related issues area: examples Changes that focus on our examples base: main PRs targeted against main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants