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

Jest executor ignores numFailedTestSuites from jest when calculating success #28463

Open
4 tasks
gvidasstage opened this issue Oct 16, 2024 · 0 comments
Open
4 tasks

Comments

@gvidasstage
Copy link

Current Behavior

When jest suites fail without any failing tests (e.g. an invalid import in the test suite), nx jest executor returns success.

Expected Behavior

Nx jest executor should not return success when only test suites fail.

GitHub Repo

No response

Steps to Reproduce

  1. Create a test suite with an invalid import
  2. Run tests using nx:jest

Nx Report

Node : 18.20.3
OS : darwin-arm64
Native Target : aarch64-macos
yarn : 3.6.4

nx : 19.7.3
@nx/js : 19.7.3
@nx/jest : 19.7.3
@nx/linter : 19.7.3
@nx/eslint : 19.7.3
@nx/workspace : 19.7.3
@nx/devkit : 19.7.3
@nx/esbuild : 19.7.3
@nx/eslint-plugin : 19.7.3
@nx/node : 19.7.3
@nrwl/tao : 19.7.3
typescript : 4.9.5

Registered Plugins:
@nx/eslint/plugin

Failure Logs

No response

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant