diff --git a/.yarn/versions/cafd3d23.yml b/.yarn/versions/cafd3d23.yml new file mode 100644 index 00000000000..0732a3208fb --- /dev/null +++ b/.yarn/versions/cafd3d23.yml @@ -0,0 +1,8 @@ +releases: + fast-check: patch + +declined: + - "@fast-check/ava" + - "@fast-check/jest" + - "@fast-check/vitest" + - "@fast-check/worker" diff --git a/packages/fast-check/src/check/runner/utils/PathWalker.ts b/packages/fast-check/src/check/runner/utils/PathWalker.ts index f30aded9e6e..0145cec2c38 100644 --- a/packages/fast-check/src/check/runner/utils/PathWalker.ts +++ b/packages/fast-check/src/check/runner/utils/PathWalker.ts @@ -23,7 +23,7 @@ export function pathWalk( let values: Stream> = producers.drop(segments[0]).map(produce); for (const s of segments.slice(1)) { const valueToShrink = values.getNthOrLast(0); - if (valueToShrink == null) { + if (valueToShrink === null) { throw new Error(`Unable to replay, got wrong path=${path}`); } values = shrink(valueToShrink).drop(s);