I am using Node 16 and Node 18 for some projects. I have a pipeline where I want to run some tests. My node server is already running in a container with other services for integration tests, and I would like to run jest outside the contaner to test all the API endpoints. Other than jest I need also some other libraries that are listed on the devDependencies
.
Since the project is fairly big, I would like to make the pipeline a little bit faster by avoiding installing all the dependencies, and installing only the devDependencies
. I see though that all the commands I have found only do not work: --only=dev
and --omit=prod
do not work for example.
So, what's the right way to install the devDependencies
only in 2023?