Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 1.71 KB

README.md

File metadata and controls

30 lines (25 loc) · 1.71 KB

Fable.Jester Nuget Nuget Nuget Nuget

Fable bindings for jest and friends for delightful Fable testing:

A quick look:

Jest.describe("my tests", fun () ->
    Jest.test("water is wet", fun () ->
        Jest.expect("test").toBe("test")
        Jest.expect("test").not.toBe("somethingElse")
        Jest.expect("hi").toHaveLength(2)
        Jest.expect("hi").not.toHaveLength(3)
    )
    Jest.test.prop("Is positive", Arbitrary.ConstrainedDefaults.integer(1,100), fun i ->
        Jest.expect(i).toBeGreaterThan(0)
    )
)

Full documentation can be found here.