Code QuizAdvanced

CI/CD Pipeline Script Chaining Bug

A simple CI/CD shell script runs build, test, and deploy — but a chaining mistake lets it deploy even when tests fail.

Codebash
#!/bin/bash
# Simple CI/CD pipeline: build -> test -> deploy

echo "Stage 1: Build"
npm run build ;

echo "Stage 2: Test"
npm test ;

echo "Stage 3: Deploy"
npm run deploy

What is the bug in this pipeline script?