Enable [globals](https://vitest.dev/config/#globals) in vitest, reducing the noise in test files.
Follow #24479      --------- Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Giteabot <teabot@gitea.io>