Skip to content

Instantly share code, notes, and snippets.

@TreehouseFalcon
Created January 8, 2023 19:10
Show Gist options
  • Save TreehouseFalcon/fca140bd5e849460844bd730672fe60f to your computer and use it in GitHub Desktop.
Save TreehouseFalcon/fca140bd5e849460844bd730672fe60f to your computer and use it in GitHub Desktop.
Lua typedef file for TestEZ
declare function afterAll(callback: () -> ()): ()
declare function afterEach(callback: () -> ()): ()
declare function beforeAll(callback: () -> ()): ()
declare function beforeEach(callback: () -> ()): ()
declare function describe(phrase: string, callback: () -> ()): ()
declare function describeFOCUS(phrase: string, callback: () -> ()): ()
declare function fdescribe(phrase: string, callback: () -> ()): ()
declare function describeSKIP(phrase: string, callback: () -> ()): ()
declare function xdescribe(phrase: string, callback: () -> ()): ()
declare function expect(value: any): any
declare function FIXME(optionalMessage: string?): ()
declare function FOCUS(): ()
declare function SKIP(): ()
declare function it(phrase: string, callback: () -> ()): ()
declare function itFOCUS(phrase: string, callback: () -> ()): ()
declare function fit(phrase: string, callback: () -> ()): ()
declare function itSKIP(phrase: string, callback: () -> ()): ()
declare function xit(phrase: string, callback: () -> ()): ()
declare function itFIXME(phrase: string, callback: () -> ()): ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment