Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Clarify NYC configration location #947

Open
@NathanKleekamp

Description

Is your feature request related to a problem? Please describe.
The docs should be clearer that the nyc configuration, whether in the package.json, .nycrc, etc, needs to be in the same directory where the cypress process runs. For example, in my case, I have Cypress Component Tests setup in a pnpm / nx monorepo in libs/foo/cypress. In order for the NYC settings to take affect, the config needs to be in libs/foo/cypress/package.json, libs/foo/cypress/nyc.config.js, etc because that's where the process runs (cypress run --component --config-file=cypress/config.ts). The docs are ambiguous because it makes it seem like the correct place is libs/foo/package.json with the rest of the project's dependencies, but they'll never get picked up there. I had to dig through the code to figure this out

Describe the solution you'd like
Clearer documentation

Describe alternatives you've considered
n/a

Additional context
n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /