File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,19 +67,16 @@ if Vitest.inSource {
6767
6868You need to bind test context ` t ` explicitly.
6969
70- If you're migrating from 1.x, there is a built-in context binding in ` Vitest.Bindings.BuiltIn ` .
71-
7270``` diff
7371open Vitest
74- + open Vitest.Bindings.BuiltIn
7572
7673describe("Hello, Vitest", t => {
7774 test("This is a test case", t => {
78- - t-> assertions(3)
79- + assertions(3)
75+ - assertions(3)
76+ + t-> assertions(3)
8077
81- - t-> expect(1 + 2)->Expect.toBe(3)
82- + expect(1 + 2)->Expect.toBe(3)
78+ - expect(1 + 2)->Expect.toBe(3)
79+ + t-> expect(1 + 2)->Expect.toBe(3)
8380 })
8481})
8582```
Original file line number Diff line number Diff line change 11open Vitest_Types
22
3+ @deprecated ("Implicit `BuiltIn` binding is deprecated, please bind the `t` context explicitly." )
34module BuiltIn = {
45 @module ("vitest" ) @val
56 external testCtx : testCtx = "expect"
You can’t perform that action at this time.
0 commit comments