redoc icon indicating copy to clipboard operation
redoc copied to clipboard

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

Open piotr-cz opened this issue 1 year ago • 1 comments

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

piotr-cz avatar May 06 '24 12:05 piotr-cz

@piotr-cz thank you for notifying us. PR opened.

AlexVarchuk avatar May 23 '24 10:05 AlexVarchuk