Skip to content

Releases: skovhus/jest-codemods

0.13.3 Expect@1 chain breaking

13 Sep 22:23
Compare
Choose a tag to compare

Support for breaking the chains of expect@1:

expect(stuff)
   .toExist()
   .toNotBe(4)
   .toBeMoreThan(42);

0.13.2

10 Sep 17:25
Compare
Choose a tag to compare

Bunch of smaller improvements for the Expect@1 codemod. See #76

0.13.1

05 Sep 23:04
Compare
Choose a tag to compare

Bunch of smaller improvements for the Expect@1 codemod (see more at #75).

0.13.0 [email protected] to Expect@21+

04 Sep 19:07
Compare
Choose a tag to compare

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

0.12.0 Automattic/expect.js

20 Aug 16:59
Compare
Choose a tag to compare

Support converting from Automattic/expect.js to Jest. Thanks to @jordalgo for the contribution! (#67) 🎉

Besides some upgrades of dependencies: inquirer, update-notifier and jscodeshift

0.11.2

14 Aug 22:12
Compare
Choose a tag to compare

Mocha: do not convert test to it (see #64, thanks to @avaly for suggesting this).

0.11.1

14 Aug 22:05
Compare
Choose a tag to compare

Bug fix: Ensure that chai should is only run on ExpressionStatement to avoid accidents (see #65). Thanks to @probablyup for reporting this.

0.11.0

07 Aug 18:54
Compare
Choose a tag to compare

Support converting Jasmine or pre Jest@20 this usage in hooks (e.g. before, afterEach).

Context jestjs/jest#3553

Thanks you @avaly for your contribution (#57)! 🏆

0.10.2

18 Jul 21:50
Compare
Choose a tag to compare

Mostly behind the scenes changes in preparation for Jest browser support and Expect@1 to Expect@20+ conversion. See #62

Bug fix:

  • Chai .to.be.an('array') (#59)

0.10.1

14 May 15:48
Compare
Choose a tag to compare

Support converting AVA snapshot testing (see #54, thanks to @jungomi).