Skip to content

fix: add --passWithNoTests to driver-utils test script#312

Merged
hotlong merged 2 commits into
mainfrom
copilot/update-action-run-logs
Feb 2, 2026
Merged

fix: add --passWithNoTests to driver-utils test script#312
hotlong merged 2 commits into
mainfrom
copilot/update-action-run-logs

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 2, 2026

CI failing on @objectql/driver-utils#test because Jest exits with code 1 when no test files exist.

Changes

  • Added --passWithNoTests flag to test script in packages/drivers/utils/package.json

Aligns with existing pattern in @objectql/types and @objectql/plugin-security.

Original prompt

引用: https://github.com/objectstack-ai/objectql/actions/runs/21581280734/job/62178970842#step:9:1


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
objectql Ready Ready Preview, Comment Feb 2, 2026 7:57am

Request Review

Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>
Copilot AI changed the title [WIP] Update action run logs for better traceability fix: add --passWithNoTests to driver-utils test script Feb 2, 2026
Copilot AI requested a review from xuyushun441-sys February 2, 2026 07:54
@hotlong hotlong marked this pull request as ready for review February 2, 2026 08:06
Copilot AI review requested due to automatic review settings February 2, 2026 08:06
@hotlong hotlong merged commit 4cd7ddf into main Feb 2, 2026
3 checks passed
@hotlong hotlong deleted the copilot/update-action-run-logs branch February 2, 2026 08:06
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a CI failure in @objectql/driver-utils by adding the --passWithNoTests flag to the Jest test script, allowing the build to pass when no test files are present.

Changes:

  • Modified the test script in packages/drivers/utils/package.json to include --passWithNoTests flag

"scripts": {
"build": "tsc",
"test": "jest"
"test": "jest --passWithNoTests"
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While this fix is correct for the immediate CI issue, there's an inconsistency across the monorepo. Several other packages also have no test files but use "test": "jest" without the --passWithNoTests flag (e.g., @objectql/driver-sql, @objectql/driver-memory, @objectql/core, @objectql/plugin-validator). These packages would also fail CI if their test scripts are executed.

Consider either:

  1. Adding --passWithNoTests to all packages without tests for consistency
  2. Or adding placeholder test files to maintain the ability to detect when test execution genuinely fails

The current approach creates an inconsistent testing configuration across the monorepo.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants