Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
20 lines
742 B
Plaintext
20 lines
742 B
Plaintext
/**
|
|
* Globals that are used by our integration tests to modify the behavior of the job system during runtime.
|
|
* This is useful to avoid having to wait for the cron jobs to run, or to pause auto-running jobs.
|
|
*/ export const _internal_jobSystemGlobals = {
|
|
getCurrentDate: ()=>{
|
|
return new Date();
|
|
},
|
|
shouldAutoRun: true,
|
|
shouldAutoSchedule: true
|
|
};
|
|
export function _internal_resetJobSystemGlobals() {
|
|
_internal_jobSystemGlobals.getCurrentDate = ()=>new Date();
|
|
_internal_jobSystemGlobals.shouldAutoRun = true;
|
|
_internal_jobSystemGlobals.shouldAutoSchedule = true;
|
|
}
|
|
export const getCurrentDate = ()=>{
|
|
return _internal_jobSystemGlobals.getCurrentDate();
|
|
};
|
|
|
|
//# sourceMappingURL=getCurrentDate.js.map |