Skip to content

Commit

Permalink
uncomment tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jchavarri committed Jun 6, 2024
1 parent 2a0be0c commit a899cf9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions jest/__tests__/globals_test.ml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ let () =
);
);

(* describe "afterAllAsync" (fun () ->
describe "afterAllAsync" (fun () ->
describe "without timeout" (fun () ->
let x = ref 0 in

Expand Down Expand Up @@ -234,9 +234,9 @@ let () =

test "" (fun () -> pass); (* runner will crash if there's no tests *)
);
); *)
);

(* describe "afterAllPromise" (fun () ->
describe "afterAllPromise" (fun () ->
describe "without timeout" (fun () ->
let x = ref 0 in

Expand Down Expand Up @@ -273,7 +273,7 @@ let () =

test "" (fun () -> pass); (* runner will crash if there's no tests *)
);
); *)
);


describe "afterEach" (fun () ->
Expand Down
8 changes: 4 additions & 4 deletions jest/__tests__/runner_test.ml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ let () =
);
);

(* describe "afterAllAsync" (fun () ->
describe "afterAllAsync" (fun () ->
describe "without timeout" (fun () ->
let x = ref 0 in

Expand Down Expand Up @@ -229,9 +229,9 @@ let () =

test "" (fun () -> true); (* runner will crash if there's no tests *)
);
); *)
);

(* describe "afterAllPromise" (fun () ->
describe "afterAllPromise" (fun () ->
describe "without timeout" (fun () ->
let x = ref 0 in

Expand Down Expand Up @@ -268,7 +268,7 @@ let () =

test "" (fun () -> true); (* runner will crash if there's no tests *)
);
); *)
);

describe "afterEach" (fun () ->
let x = ref 0 in
Expand Down
4 changes: 2 additions & 2 deletions jest/jest.ml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ module Runner (A : Asserter) = struct
(Js.Undefined.fromOption timeout)

external afterAll : (unit -> unit [@mel.uncurry]) -> unit = "afterAll"
(* external afterAllAsync : ((unit -> unit [@u]) -> unit Js.undefined) -> int Js.Undefined.t -> unit = "afterAll"
external afterAllAsync : ((unit -> unit [@u]) -> unit Js.undefined) -> int Js.Undefined.t -> unit = "afterAll"
let afterAllAsync ?timeout callback =
afterAllAsync
(fun finish -> callback (fun () -> finish () [@u]); Js.undefined)
Expand All @@ -197,7 +197,7 @@ module Runner (A : Asserter) = struct
let afterAllPromise ?timeout callback =
afterAllPromise
(fun () -> callback () |> Js.Promise.resolve)
(Js.Undefined.fromOption timeout) *)
(Js.Undefined.fromOption timeout)

external afterEach : (unit -> unit [@mel.uncurry]) -> unit = "afterEach"
external afterEachAsync : ((unit -> unit [@u]) -> unit Js.undefined) -> int Js.Undefined.t -> unit = "afterEach"
Expand Down
8 changes: 4 additions & 4 deletions jest/jest.mli
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ module Runner (A : Asserter) : sig
val beforeEachAsync : ?timeout:int -> ((unit -> unit) -> unit) -> unit
val beforeEachPromise : ?timeout:int -> (unit -> 'a Js.Promise.t) -> unit
external afterAll : (unit -> unit [@mel.uncurry]) -> unit = "afterAll"
(* val afterAllAsync : ?timeout:int -> ((unit -> unit) -> unit) -> unit *)
(* val afterAllPromise : ?timeout:int -> (unit -> 'a Js.Promise.t) -> unit *)
val afterAllAsync : ?timeout:int -> ((unit -> unit) -> unit) -> unit
val afterAllPromise : ?timeout:int -> (unit -> 'a Js.Promise.t) -> unit
external afterEach : (unit -> unit [@mel.uncurry]) -> unit = "afterEach"
val afterEachAsync : ?timeout:int -> ((unit -> unit) -> unit) -> unit
val afterEachPromise : ?timeout:int -> (unit -> 'a Js.Promise.t) -> unit
Expand Down Expand Up @@ -57,8 +57,8 @@ external beforeEach : (unit -> unit [@mel.uncurry]) -> unit = "beforeEach"
val beforeEachAsync : ?timeout:int -> ((unit -> unit) -> unit) -> unit
val beforeEachPromise : ?timeout:int -> (unit -> 'a Js.Promise.t) -> unit
external afterAll : (unit -> unit [@mel.uncurry]) -> unit = "afterAll"
(* val afterAllAsync : ?timeout:int -> ((unit -> unit) -> unit) -> unit *)
(* val afterAllPromise : ?timeout:int -> (unit -> 'a Js.Promise.t) -> unit *)
val afterAllAsync : ?timeout:int -> ((unit -> unit) -> unit) -> unit
val afterAllPromise : ?timeout:int -> (unit -> 'a Js.Promise.t) -> unit
external afterEach : (unit -> unit [@mel.uncurry]) -> unit = "afterEach"
val afterEachAsync : ?timeout:int -> ((unit -> unit) -> unit) -> unit
val afterEachPromise : ?timeout:int -> (unit -> 'a Js.Promise.t) -> unit
Expand Down

0 comments on commit a899cf9

Please sign in to comment.