Skip to content

Releases: pactumjs/pactum

v3.1.4

19 Feb 07:42
9e0b7fa
Compare
Choose a tag to compare

What's Changed

  • Add support for setting mock server host address by @leelaprasadv in #120
  • 3.1.4 by @ASaiAnudeep in #124
    • added parse function to process data templates
    • added clone property in interactions
    • fix typescript errors #108
  • Bump ansi-regex from 5.0.0 to 5.0.1 by @dependabot in #125

Full Changelog: v3.1.3...v3.1.4

v3.1.3

22 Jan 17:07
616baf5
Compare
Choose a tag to compare

What's Changed

  • Bug Fixes - withCookies and expectJsonSnapshot
  • Introduced regex rule matching to support nested overriding of eachLike
  • V3 by @ASaiAnudeep in #116

Full Changelog: v3.1.2...v3.1.3

v3.1.2

15 Jan 14:58
4250302
Compare
Choose a tag to compare

Enhancements

  • New optional property disable in Interaction objects expects to toggle expectation on Interactions (exercised or not).
    • disable is default set to false.
expects: {
   disable: false    // default to false & optional field
}
  • Bump pactum-matchers from 1.0.5 to 1.0.6
  • Bump pactum from 3.1.1 to 3.1.2

v3.1.1

25 Dec 07:36
cf4f01d
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.1.0...v3.1.1

v3.1.0

05 Nov 12:03
Compare
Choose a tag to compare

Breaking Changes

  • form-data is replaced with form-data-lite
  • request.FormData is removed

Enhancements

  • withBody method to accept file path
  • added new matcher any

Bug Fixes

  • stores in interaction response doesn't maintain the same state
  • getInteraction with invalid doesn't throw an error

v3.0.21

09 Oct 15:02
Compare
Choose a tag to compare

Bug Fixes

  • Fixed bug with background interactions.

Enhancements

  • added new matchers - release docs.
  • added clone utility method.

v3.0.20

26 Sep 11:38
f713dd0
Compare
Choose a tag to compare

Enhancements

  • Added wait handlers and dynamic waits. See more details here.
  • Support for background interactions
  • retry now supports retry on list of status codes. See more details on retry here.
    // Example
    .retry({
      delay: 1,
      count: 1,
      status: [502, 504]
    })
    
    

v3.0.19

05 Sep 17:05
599a108
Compare
Choose a tag to compare

Enhancements

  • added expectJsonLength assertion method.
  • mock server now stops on receiving SIGTERM signal which will be useful for docker setup.