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

cypress --quiet flag not working when component testing #16672

Closed
wiegell opened this issue May 1, 2023 · 2 comments · Fixed by #16680
Closed

cypress --quiet flag not working when component testing #16672

wiegell opened this issue May 1, 2023 · 2 comments · Fixed by #16680
Assignees
Labels
outdated scope: testing tools Issues related to Cypress / Jest / Playwright / Vitest support in Nx type: bug

Comments

@wiegell
Copy link

wiegell commented May 1, 2023

Current Behavior

When doing a component test via nx (yarn nx component-test <project>) some flags will work e.g. the --spec flag (yarn nx component-test <project> --spec <some-file>).
The --quiet flag does not work however. You get the summary regardless of the flag:

 (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        1                                                                                │
  │ Passing:      1                                                                                │
  │ Failing:      0                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        false                                                                            │
  │ Duration:     0 seconds                                                                        │
  │ Spec Ran:     xxx.component.cy.ts                                                          │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

  XXXComponent
    ✓ renders (38ms)


  1 passing (66ms)

✨  Done in 5.74s.

Expected Behavior

The summary should be hidden like when run via cypress directly (yarn cypress run --project <projectPath> --component --spec <pathToSpec> --quiet):

  SomeComponent
    ✓ renders (38ms)


  1 passing (66ms)

✨  Done in 5.74s.

GitHub Repo

No response

Steps to Reproduce

See above

Nx Report

Node : 16.19.1
   OS   : darwin arm64
   yarn : 1.22.19

   nx                      : 15.8.9
   @nrwl/js                : 15.9.2
   @nrwl/jest              : 15.9.2
   @nrwl/linter            : 15.8.9
   @nrwl/workspace         : 15.8.9
   @nrwl/angular           : 15.8.9
   @nrwl/cli               : 15.8.9
   @nrwl/cypress           : 15.8.9
   @nrwl/devkit            : 15.9.2
   @nrwl/eslint-plugin-nx  : 15.8.9
   @nrwl/tao               : 15.8.9
   @nrwl/webpack           : 15.8.9
   typescript              : 4.9.5
   ---------------------------------------
   Community plugins:
   @ngrx/effects                  : 15.4.0
   @ngrx/entity                   : 15.4.0
   @ngrx/router-store             : 15.4.0
   @ngrx/store                    : 15.4.0
   apollo-angular                 : 4.2.1
   @ngrx/store-devtools           : 15.4.0
   @trifork/nx-angular-generators : 0.0.66
   ng-mocks                       : 14.9.0
   nx-stylelint                   : 15.0.0
   ---------------------------------------
   The following packages should match the installed version of nx
     - @nrwl/[email protected]
     - @nrwl/[email protected]
     - @nrwl/[email protected]

   To fix this, run `nx migrate [email protected]`

Failure Logs

No response

Additional Information

No response

@wiegell
Copy link
Author

wiegell commented May 1, 2023

It't probably related to nx changin the flag to --quiet=true:

With additional flags:
           --spec=<pathtospec>
           --quiet=true

@jaysoo jaysoo added the scope: testing tools Issues related to Cypress / Jest / Playwright / Vitest support in Nx label May 1, 2023
@github-actions
Copy link

github-actions bot commented Jun 1, 2023

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated scope: testing tools Issues related to Cypress / Jest / Playwright / Vitest support in Nx type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants