China recently tested a space weapon in Earth's orbit, the US said on Tuesday, because apparently the final frontier wasn't quite final enough for the superpowers' military competition.

"This event demonstrates that space is broadly recognised and treated as a warfighting domain and emphasises that China is actively developing weapons capabilities that threaten US national security interests," the Pentagon said in a statement, using the word "warfighting" in a sentence about space with a straight face.

The development follows the US military's own recent admissions that it has deployed weapons in space and is preparing for combat not only in Earth's orbit but also around the moon. So, the moon: not just for golf and footprints anymore.

When asked about the test by reporters, President Donald Trump said the US was "looking at" the development but quickly added that "we test weapons in space." "We're testing a lot of things in space, also," he said, in what will surely be remembered as one of the great diplomatic clarifications of our time.

The US has warned for years about rivals such as China and Russia possibly weaponising a global frontier that was long agreed in treaties should be used for only peaceful purposes. Treaties, it turns out, are a lot like New Year's resolutions - everyone agrees to them in January and then quietly abandons them by March.

The Chinese weapons test was first reported by Reuters, which said it happened in late October and described it as an orbiting kinetic weapon system capable of attacking another satellite with a missile or physical projectile. In November, reports emerged that Russia is preparing to launch a nuclear-armed satellite into space later this year, because why should China have all the fun?

Warfare in space has been a favoured issue for Trump since his first term, and the idea of a space force became a regular applause line for Trump at his political rallies in 2016. Both Trump and the Pentagon said Tuesday the Chinese test validated his decision to create the US Space Force as a separate branch of the military. "We're leading in space right now because of Space Force. We very intelligently created Space Force in my first term," Trump said, demonstrating his signature commitment to humility.

Trump ordered the Pentagon to create the force in 2018, though the idea was met with some scepticism and pushback even from inside his own administration. The then defence secretary Jim Mattis publicly questioned the wisdom of adding a separate service for space while conceding that the Pentagon needed a more effective way of defending its interests there. Ultimately, Congress signed off on the idea but made it part of the air force and not a "separate but equal" branch to the other military services as Trump originally wanted - proof that even Congress occasionally says no to a bad idea, albeit a watered-down version of it.

Trump also has aggressively pitched the idea of putting weapons into space as part of his "Golden Dome" missile defence program. He signed an executive order for the futuristic system early in his second term, but the program has incurred massive cost overruns since then - because of course it has.

The Chinese embassy didn't immediately respond to an email seeking comment late Tuesday afternoon, presumably because they were too busy not commenting.