@serenity-js/assertions 3.38.0 → 3.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.39.0](https://github.com/serenity-js/serenity-js/compare/v3.38.0...v3.39.0) (2026-01-30)
7
+
8
+ **Note:** Version bump only for package @serenity-js/assertions
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.38.0](https://github.com/serenity-js/serenity-js/compare/v3.37.2...v3.38.0) (2026-01-29)
7
15
 
8
16
  **Note:** Version bump only for package @serenity-js/assertions
@@ -23,9 +23,7 @@ const core_1 = require("@serenity-js/core");
23
23
  *
24
24
  * @group Expectations
25
25
  */
26
- exports.isCloseTo = core_1.Expectation.define('isCloseTo', (expected, absoluteTolerance = 1e-9) => (0, core_1.d) `have value close to ${expected} ±${absoluteTolerance}`,
27
- // eslint-disable-next-line @typescript-eslint/no-inferrable-types
28
- (actual, expected, absoluteTolerance = 1e-9) => {
26
+ exports.isCloseTo = core_1.Expectation.define('isCloseTo', (expected, absoluteTolerance = 1e-9) => (0, core_1.d) `have value close to ${expected} ±${absoluteTolerance}`, (actual, expected, absoluteTolerance = 1e-9) => {
29
27
  // short-circuit exact equality
30
28
  if (actual === expected) {
31
29
  return true;
@@ -1 +1 @@
1
- {"version":3,"file":"isCloseTo.js","sourceRoot":"","sources":["../../src/expectations/isCloseTo.ts"],"names":[],"mappings":";;;AAAA,4CAAmD;AAEnD;;;;;;;;;;;;;;;;;;;;GAoBG;AACU,QAAA,SAAS,GAAG,kBAAW,CAAC,MAAM,CACvC,WAAW,EAAE,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,EAAE,EAAE,CAAC,IAAA,QAAC,EAAA,uBAAwB,QAAS,KAAM,iBAAkB,EAAE;AACjH,kEAAkE;AACl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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serenity-js/assertions",
3
- "version": "3.38.0",
3
+ "version": "3.39.0",
4
4
  "description": "Serenity/JS universal assertion library supporting all types of functional tests, including both web and REST API scenarios",
5
5
  "author": {
6
6
  "name": "Jan Molak",
@@ -48,7 +48,7 @@
48
48
  "node": "^20 || ^22 || ^24"
49
49
  },
50
50
  "dependencies": {
51
- "@serenity-js/core": "3.38.0",
51
+ "@serenity-js/core": "3.39.0",
52
52
  "tiny-types": "1.24.3"
53
53
  },
54
54
  "devDependencies": {
@@ -61,5 +61,5 @@
61
61
  "ts-node": "10.9.2",
62
62
  "typescript": "5.9.3"
63
63
  },
64
- "gitHead": "d86152afd35fb815038b3a153e8c53a0b023e4b3"
64
+ "gitHead": "253c63474dd24f3850a0f34b6d5f42559049a25c"
65
65
  }
@@ -23,7 +23,7 @@ import { d, Expectation } from '@serenity-js/core';
23
23
  */
24
24
  export const isCloseTo = Expectation.define(
25
25
  'isCloseTo', (expected, absoluteTolerance = 1e-9) => d`have value close to ${ expected } ±${ absoluteTolerance }`,
26
- // eslint-disable-next-line @typescript-eslint/no-inferrable-types
26
+
27
27
  (actual: number, expected: number, absoluteTolerance: number = 1e-9) => {
28
28
  // short-circuit exact equality
29
29
  if (actual === expected) {