sepia-search-motore-di-rice.../server/helpers/core-utils.ts

17 lines
298 B
TypeScript

function isTestInstance () {
return process.env.NODE_ENV === 'test'
}
function waitMs (ms: number) {
return new Promise<void>(res => {
setTimeout(() => res(), ms)
})
}
// ---------------------------------------------------------------------------
export {
isTestInstance,
waitMs
}