Update your tsx to latest and in your package.json file, update the script for TestX, change tsx from --loader to tsx --import
If for some reason you can't do that downgrade your node version.