Thanks to visit codestin.com
Credit goes to github.com

Skip to content

The v2.1.4 defines jest-environment-jsdom as prod dependency #2537

@piotr-cz

Description

@piotr-cz

Describe the bug
After upgrading @redocly/cli from 1.11.0 to 1.12.0 I've noticed lots of new dependencies.

Turns out that these are pulled along with jest-environment-jsdom, which has been added as a dependency instead of devDependency here: https://github.com/Redocly/redoc/pull/2445/files

Expected behavior
Installing @redocly/cli or redoc package in a project should not install dependencies related to tests such as jest

Minimal reproducible OpenAPI snippet(if possible)

npm install @redocly/cli@^1.12.0
npm ls jest-environment-jsdom

Screenshots

Additional context
Jest Instructions for DOM manipulation testing: https://jestjs.io/docs/next/tutorial-jquery

npm install --save-dev jest-environment-jsdom

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions