I have built docker test image using multistage and in the final image not recommended to install npm. But using the final image i have to trigger jest testcases. Is there any way to trigger jest testcases without using npm/node commands?
- Not recommended to install npm at final image.
- Using final image, i need to trigger jest testcases.
How do i run jest testcases without using npm command?
I have built multistage docker image, in stage #1 i have installed npm and in stage#2 i have copied node_modules folder and while running final image, through shell script file i gave npm start command to trigger jest testcase but npm command is not found at final image.
./start.sh: line 6: npm: command not found
How do i run jest testcases without using npm command?