Our build pipeline is npm install -> npm test -> Zip the artifact.
This however means our artifact contains all devDependencies. If we do npm --only=production we lose the devDependencies but npm test will fail.
How can we generated a tested artifact without devDependencies? Do we just have to trust that our app will run without the devDependencies after we test with them?
BONUS question: How should npm ci fit into this workflow?