Skip to content

0.13.0 Expect@1.x to Expect@21+

Choose a tag to compare

@skovhus skovhus released this 04 Sep 19:07

Expect@1 to Expect@21+

Background: @mjackson donated the expect package (https://github.com/mjackson/expect) to Jest. There has been a lot of work around this to support the same features AND support running Jest in a browser.

From jest@21 the jest-matchers are now released as expect.

jest-codemods let's you migrate from expect@1 to expect@21+! 🎉

Browser support

During the work to make take over the expect package, Jest now also supports running in a browser. So when migration your tests using the jest-codemods CLI you are asked if you want to run your tests in node or in a browser. : )

See more