Fixed that setting the NODE_OPTIONS
var this way
"test": "NODE_OPTIONS='--import tsx' vitest run --reporter junit --coverage --outputFile=results.xml"
I know that performances would be impacted because of the tsx import, but in my case is not so important