版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

21 lines
571 B

  1. import { setSafeTimers } from '@vitest/utils';
  2. import { a as resetRunOnceCounter } from './chunk-integrations-run-once.ea614f17.js';
  3. let globalSetup = false;
  4. async function setupCommonEnv(config) {
  5. resetRunOnceCounter();
  6. setupDefines(config.defines);
  7. if (globalSetup)
  8. return;
  9. globalSetup = true;
  10. setSafeTimers();
  11. if (config.globals)
  12. (await import('./chunk-integrations-globals.49802775.js')).registerApiGlobally();
  13. }
  14. function setupDefines(defines) {
  15. for (const key in defines)
  16. globalThis[key] = defines[key];
  17. }
  18. export { setupCommonEnv as s };