Skip to content

Commit

Permalink
remove Current.bench which never exists
Browse files Browse the repository at this point in the history
  • Loading branch information
cometkim committed Aug 22, 2024
1 parent 9329eff commit 654ff17
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions src/Vitest.res
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ module type ConcurrentRunner = {
let testAsync: (string, unit => promise<unit>, Js.undefined<int>) => unit

let itAsync: (string, unit => promise<unit>, Js.undefined<int>) => unit

let benchAsync: (string, unit => promise<unit>, Js.undefined<benchOptions>) => unit
}

module MakeRunner = (Runner: Runner) => {
Expand Down Expand Up @@ -205,9 +203,6 @@ module Concurrent = {

@module("vitest") @val
external concurrent_it: concurrent_it = "it"

@module("vitest") @val
external concurrent_bench: concurrent_bench = "bench"
)

@send
Expand All @@ -234,19 +229,10 @@ module Concurrent = {
Js.undefined<int>,
) => unit = "concurrent"

@send
external benchAsync: (
concurrent_bench,
string,
@uncurry (unit => promise<unit>),
Js.undefined<benchOptions>,
) => unit = "concurrent"

include MakeConcurrentRunner({
let describe = describe(concurrent_describe)
let testAsync = testAsync(concurrent_test)
let itAsync = itAsync(concurrent_it)
let benchAsync = benchAsync(concurrent_bench)
})
}

Expand Down Expand Up @@ -335,7 +321,6 @@ module Only = {
type concurrent_describe
type concurrent_test
type concurrent_it
type concurrent_bench

%%private(
@get
Expand All @@ -346,9 +331,6 @@ module Only = {

@get
external concurrent_it: only_it => concurrent_it = "only"

@get
external concurrent_bench: only_bench => concurrent_bench = "only"
)

@send
Expand All @@ -375,19 +357,10 @@ module Only = {
Js.undefined<int>,
) => unit = "concurrent"

@send
external benchAsync: (
concurrent_bench,
string,
@uncurry (unit => promise<unit>),
Js.undefined<benchOptions>,
) => unit = "concurrent"

include MakeConcurrentRunner({
let describe = describe(only_describe->concurrent_describe)
let testAsync = testAsync(only_test->concurrent_test)
let itAsync = itAsync(only_it->concurrent_it)
let benchAsync = benchAsync(only_bench->concurrent_bench)
})
}
}
Expand Down Expand Up @@ -477,7 +450,6 @@ module Skip = {
type concurrent_describe
type concurrent_test
type concurrent_it
type concurrent_bench

%%private(
@get
Expand All @@ -488,9 +460,6 @@ module Skip = {

@get
external concurrent_it: skip_it => concurrent_it = "skip"

@get
external concurrent_bench: skip_bench => concurrent_bench = "skip"
)

@send
Expand All @@ -517,19 +486,10 @@ module Skip = {
Js.undefined<int>,
) => unit = "concurrent"

@send
external benchAsync: (
concurrent_bench,
string,
@uncurry (unit => promise<unit>),
Js.undefined<benchOptions>,
) => unit = "concurrent"

include MakeConcurrentRunner({
let describe = describe(skip_describe->concurrent_describe)
let testAsync = testAsync(skip_test->concurrent_test)
let itAsync = itAsync(skip_it->concurrent_it)
let benchAsync = benchAsync(skip_bench->concurrent_bench)
})
}
}
Expand Down

0 comments on commit 654ff17

Please sign in to comment.