VitestHelpers.res

 1type testCtx
 2@send external expect: (testCtx, 'a) => 'a = "expect"
 3
 4@module("vitest") external describe: (string, unit => unit) => unit = "describe"
 5@module("vitest") external test: (string, testCtx => unit) => unit = "test"
 6@module("vitest") external testAsync: (string, testCtx => promise<unit>) => unit = "test"
 7
 8@send external toEqual: ('a, 'a) => unit = "toEqual"
 9@get external not_: 'a => 'a = "not"
10@send external toBeNull: 'a => unit = "toBeNull"
11@send external toBe: ('a, 'a) => unit = "toBe"
12@send external toBeGreaterThan: ('a, 'a) => unit = "toBeGreaterThan"
13@send external toBeLessThan: ('a, 'a) => unit = "toBeLessThan"
14@send external toBeCloseTo: ('a, float, ~digits: int=?) => unit = "toBeCloseTo"
15@send external toHaveLength: ('a, int) => unit = "toHaveLength"
16@send external toInclude: ('a, string) => unit = "toContain"
17@send external fail: (testCtx, string) => unit = "fail"