const path = require('path'); const { sleep } = require('./util'); const { getAllWorkflows } = require('./workflow'); require(path.join(process.cwd(),"..","server","dist","database.js")); (async function(){ await sleep(5e3); console.time("WorkflowTester") console.log("initilizing begin.."); const workflows = await getAllWorkflows(); if(workflows.length==0) throw "There is not any workflow"; console.timeEnd("WorkflowTester") console.log("DONE"); })()