File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -914,6 +914,8 @@ module Assert = Vitest_Assert
914914
915915module Vi = Vitest_Helpers
916916
917+ module Bindings = Vitest_Bindings
918+
917919@send
918920external expect : (testCtx , 'a ) => expected <'a > = "expect"
919921
@@ -930,8 +932,6 @@ external hasAssertion: testCtxExpect => unit = "hasAssertion"
930932@inline
931933let hasAssertion = testCtx => testCtx -> inner -> hasAssertion
932934
933- module Bindings = Vitest_Bindings
934-
935935@scope ("import.meta" ) @val
936936external inSource : bool = "vitest"
937937
Original file line number Diff line number Diff line change @@ -7,8 +7,12 @@ module BuiltIn = {
77 @module ("vitest" )
88 external expect : 'a => expected <'a > = "expect"
99
10- let expect = x => testCtx -> expect (x )
10+ @send
11+ external assertions : (testCtx , int ) => unit = "assertions"
1112 let assertions = x => testCtx -> assertions (x )
13+
14+ @send
15+ external hasAssertion : testCtx => unit = "hasAssertion"
1216 let hasAssertion = () => testCtx -> hasAssertion
1317}
1418
You can’t perform that action at this time.
0 commit comments