We consider the detection of a direct-sequence spread-spectrum signal received in a pulsed noise jamming environment. The expectation-maximization algorithm is used to estimate the unknown jammer parameters and hence obtain a decision on the binary signal based on the estimated likelihood functions. The probability of error performance of the algorithm is simulated for a repeat code and a (7,4) block code. Simulation results show that at low signal-to-thermal noise ratio and high jammer power, the EM detector performs significantly better than the hard limiter and somewhat better than the soft limiter. Also, at low SNR, there is little degradation as compared to the maximum-likelihood detector with true jammer parameters. At high SNR, the soft limiter outperforms the EM detector.