Skip to content

Releases: cometkim/rescript-vitest

v2.0.0

02 Dec 16:48
fd89d20
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.5.0...v2.0.0

Context bindings

You should now bind test context explicitly on expect / assertions / hasAssertions

test("My test case", t => {
-  expect(1 + 2)->Expect.toBe(3)
+  t->expect(1+2)->Expect.toBe(3)
})

This ensures the test context is always bound correctly, even in the InSource testing. If you want to keep the old code style, you can open the built-in Vitest.Bindings.BuiltIn, which binds Vitest's built-in global test context as before.

Simple flags

You can now use flags like skip, only, concurrent, etc as the suite's named arguments.

test(~skip=true, "Skipped test", t => { ... })
test(~only=true, "Only test", t => { ... })

(Now I'm considering module-style bindings to keep bindings simple, but still not sure which one users prefer them yet)

Compiler support

rescript-vitest now works for ReScript v10, v11, and v12, regardless uncurried mode

Dependencies

Update Vitest to v2.1.8, which supports Vite 6

v1.5.0

22 Aug 18:01
a1fffc1
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.4.0...v1.5.0

v1.4.0

21 Apr 07:01
d8e631c
Compare
Choose a tag to compare

What's Changed

Non-feature

New Contributors

Full Changelog: v1.3.0...v1.4.0

v1.3.0

25 Nov 22:27
b4707e2
Compare
Choose a tag to compare

v1.2.0

09 May 15:51
0c31378
Compare
Choose a tag to compare
  • Support ReScript v11 (next)
  • Upgrade vitest version to v0.31.0

v1.1.0

23 Jan 10:29
151c50e
Compare
Choose a tag to compare
  • Support for test.each and describe.each (by @jmagaram)
  • Support for benchmarking
  • Deprecated testPromise and itPromise in favor of *Async alias. Those will be removed in next major.

v1.0.1

12 Dec 20:32
328eb1a
Compare
Choose a tag to compare
  • Fixed Expect.Promise.toThrow and Expect.Promise.toThrowError type

v1.0.0

12 Dec 20:11
3c9eddf
Compare
Choose a tag to compare
  • BREAKING: ReScript v10.1 is required.
  • Switch @ryyppy/rescript-promise to Js.Promise2 for async/await compatibility.
  • Fixed Expect.not binding correctly
  • Added Expect.toBeSome and Expect.toBeNone
  • Added Expect.Promise matchers. (See promise.test.res for detail)
  • Added aliases testAsync and itAsync, which are identical to testPromise and itPromise

v0.4.0

12 Dec 18:45
92f9591
Compare
Choose a tag to compare
  • Vite 4 as valid peerDependencies
  • Upgrade Vitest version

v0.3.1

13 Nov 11:32
16f5e79
Compare
Choose a tag to compare
  • Added ReScript@v10 to valid peerDeps
  • Upgrade dependencies