import { expect, expectTypeOf, test } from "vitest"; import Updater from "../src/index.ts"; import * as types from "../src/types.ts"; test("get archive from gitea", async (): Promise => { const updater = new Updater("https://git.emaker.limited/MicrocontrollerCD/SoftwareRelease/releases", "atom"); const res = await updater.getArchive(); expectTypeOf(res).toBeArray(); expectTypeOf(res[0]).toMatchObjectType(); expect(res).not.toBe(null); });