Skip to content

ryanartecona/infinite-jest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

infinite-jest

An experimental cross-platform native/BuckleScript test framework

Alas, poor Yorick! I knew him, Horatio: a fellow of infinite jest, of most excellent fancy: he hath borne me on his back a thousand times; and now, how abhorred in my imagination it is!

Example

open InfiniteJest

let myTests =
  open InfiniteJest.Test in
  
  describe "Assertions" (fun () -> [
  
    test "completely bananas" (fun () ->
      "bananas" |> Expect.stringContaining "nanas");
      
    test "succ" (fun () ->
      2 |> succ
        |> Expect.toEqual 3);
        
  ])

let _ = 
  run [myTests]

Output comparison

Jest/BuckleScript (Left) vs Native runner (Right) Output comparison)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • OCaml 95.8%
  • Standard ML 4.2%