/// import express from "express"; import { Server } from "http"; /** * This performs functions common to all the minion framework tests, like muting error logging * (because we'll be deliberately causing errors in tests), finding free ports to listen on for * testing the API, and setting up an express app to test against. * * @param caption The caption to put in the "describe" block that goes around this test * @param fn A function in which to execute tests - this passes a number of arguments as no-arg functions * that will return the latest value - these values change during test setup so they can't be * passed directly during the test setup. */ export default function baseSpec(caption: string, fn: (expressApp: () => express.Express, expressServer: () => Server, listenPort: () => number, beforeEachProperty: () => void) => void): void;