(name: string, cb: () => any)
| 55 | } |
| 56 | |
| 57 | export async function runOnce(name: string, cb: () => any) { |
| 58 | if (await run_tracker.setIf("run_" + name, true, "IfNotExists")) { |
| 59 | console.log(`Running ${name}`) |
| 60 | await cb(); |
| 61 | } else { |
| 62 | console.log("skipping already run test"); |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | runOnce(script.name, async () => { |
| 67 | await sendScriptCompletion(script.name); |
no test coverage detected