// This is a very basic placeholder of types for @zuplo/test that we will support // It's a simplification of things allowed in the Deno bdd module declare module "@zuplo/test" { // These are the test constructs export interface TestSuite { symbol: symbol; } export function afterAll(fn: (this: T) => void | Promise); export function afterEach(fn: (this: T) => void | Promise); export function beforeAll(fn: (this: T) => void | Promise); export function beforeEach(fn: (this: T) => void | Promise); export function describe(name: string, fn: () => void | Promise): TestSuite; export namespace describe { const ignore: (name: string, fn: () => void | Promise) => TestSuite; const only: (name: string, fn: () => void | Promise) => TestSuite; const skip: (name: string, fn: () => void | Promise) => TestSuite; } export function it(name: string, fn: () => void | Promise): TestSuite; export namespace it { const ignore: (name: string, fn: () => void | Promise) => TestSuite; const only: (name: string, fn: () => void | Promise) => TestSuite; const skip: (name: string, fn: () => void | Promise) => TestSuite; } // These are the helpers export const TestHelper: { TEST_URL: string environment: { [index:string]: string; } } }