India and Pakistan both conducted nuclear weapons tests in 1998 .