Catalysis of the reaction: a long-chain (3S)-3-hydroxyacyl-CoA = a long-chain trans-2-enoyl-CoA + H2O. A long-chain acyl-CoA is an acyl-CoA thioester where the acyl chain contains 13 to 22 carbon atoms.