Simulating a Round
You can also simulate a round by calling the task functions in a separate javascript file.
Here is an example code that you can use in your tests folder:
const { coreLogic } = require("../coreLogic");
const run = async () => {
let delay = 60000;
let round = 4;
console.log("Started a new task at round", round);
setTimeout(async () => {
console.log("Stopping task at round", round);
let proof_cid = await coreLogic.fetchSubmission(round - 1);
console.log("Got round result", proof_cid);
let output = await coreLogic.validateNode(proof_cid, round);
console.log("Validated round result", output);
}, delay);
};
run();