import {J} from "./utils"; import OB from "@onebro/oba-common"; import { CCTXPlaygroundTests } from "./main-api"; import { CCTXPlaygroundApiModelsTestSuite } from "./types"; export const initialize = (A:CCTXPlaygroundApiModelsTestSuite) => J.desc("INIT",() => { it("Init",async () => { await A.refresh(/local/i.test(OB.env())); OB.ok(`** tests started @ ${new Date().toLocaleString()} in ${OB.env()} env**`); },1E9); }); export const wrapup = () => J.desc("WRAPUP",() => { it("Wrapup",async () => {OB.ok("** tests complete **");},1E9); }); export const allTests = () => J.desc("ALL TESTS",() => { const A = new CCTXPlaygroundApiModelsTestSuite(); initialize(A); CCTXPlaygroundTests(A); wrapup(); });