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