It seems that they unofficially acknowledge it as a nuclear power because of the success of the nuclear test
In fact, the US and Russia have never actually tested strategic missiles with nuclear warheads
Only China has tested it in real life, proving it only with simulation
Eventually, if you succeed in intercontinental ballistic technology and nuclear bomb tests, you admit you have an intercontinental nuclear warhead